Inheritance: Look at the image below you will get a point, Yes, the derived class can access base class properties and still the derived class has its own properties.
Inheritance
Class
Extends - IS A RELATIONSHIP
Interface
Implements - HAS A RELATIONSHIP
Types of Inheritance,
Note :
Multiple inheritance is not supported in JAVA,because of method ambiguous
Interface
No comments:
Post a Comment