To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
Derived class adult contains fields and methods: char * name, * surname — inherited, inaccessible for the class adult char *nr_ID_card — private in adult print_name(), print_surname () — public, inherited from person person::print_all() — public, inherited, hidden: use scope operator (::) to access contains all fields of the base class inherits all methods, may redefine them to access accessible but hidden names from the base class - use the scope operator (::) note : - some names (private) may exist , but may not be accessible - some (hidden) may be accessible , but not visible
... zobacz całą notatkę
Komentarze użytkowników (0)