This is the case of inheritance. Where we get all the methods of extended class to extending class
4 Answers
This is the case of inheritance. Where we get all the methods of extended class to extending class
When a class extends another class, the execution of code is from parent to child. Firstly it calls the parent class methods/constructor after that child's class.
When one class have Methods which we have to use in another class that time extend one class to other.
To comment on this, Sign In or Sign Up.
Would you like us to review something? Please describe the problem with this {0} and we will look into it.
Your feedback has been sent to the team and we'll look into it.
Could you please expand?