4 ms·
The public vs. private aspect also affects inheritance. structs publicly inherit from base types by default, classes privately inherit from base types.
by SAHChandler 2y ago
The public vs. private aspect also affects inheritance. structs publicly inherit from base types by default, classes privately inherit from base types.