What is inheritance?
Inheritance is mechanics to build new class from existing class.
Also it can be defined as the process where one class acquires the properties (methods and fields) of another.
The class which inherits the properties of other is known as subclass (derived class, child class) and the class whose properties are inherited is known as superclass (base class, parent class).
What sub class can do?
Subclass can add new function.
Subclass can override function.
Subclass can Use inherited function.
Welcome to TCCI-Tririd Computer Coaching Institute. We are a Gujarat (India) based Computer coaching institute at Ahmedabad and we focus on providing best teaching to students through different learning method/media. we try our best to give best quality education without any burden at efficeint cost.
To learn more about inheritance in java
Visit us @ tccicomputercoaching.com
Call us @ 98256 18292