ContactUs :

Please send your Questions & Answers or Feedback to ""

What is Inheritance?

Inheritance is the process by which objects of one class acquire the properties of objects of another class.
A class that is inherited is called a superclass.
The class that does the inheriting is called a subclass.
Inheritance is done by using the keyword extends.
The two most common reasons to use inheritance are:
To promote code reuse
To use polymorphism
Related Posts Plugin for WordPress, Blogger...
Flag Counter