Derived class

Nasza ocena:

3
Wyświetleń: 637
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Derived class - strona 1 Derived class - strona 2

Fragment notatki:

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)

Zaloguj się, aby dodać komentarz