Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Inherit data members
Theres aby way to inherit data members apart of methods? or something similar. If in the mother class are protected data members, and inherit a method that set those data, if I create an obj of a daughter class and inherit the set method, the obj got its own data members too? Thx
1 Resposta
+ 2
the protected data member of mother class are also visible to the inherited daughter class and the data member of daughter class are also visible to its own member functions