CodesJava

Easy learning with example program codes

are constructors inherited in java?


No, constructors cannot be inherited in java.

Inheritance

Inheritance is a way to implement IS-A relationship i.e. parent child relationship. Subclass inherits the super class properties like data member, methods. Inheritance is the way of re-usability of code.

Java nterview questions on inheritance

Please follow and like us:


Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki