+ 2
âInheritance helps to make reusable codeâ
What does this mean
1 Answer
+ 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.