+ 2
“Inheritance helps to make reusable code”
What does this mean
1 Odpowiedź
+ 2
Your parent class data members which are public and protected will be inherited by your child class. So all the methods will also be inherited, you do not have to write them again in your child class explicitly.