1.

How To Use Inheritance In Java?

Answer»

You can USE INHERITANCE in Java by extending classes and implementing interfaces. Java provides two keywords extends and implements to achieve inheritance. A CLASS which is derived from another class is known as a SUBCLASS and an interface which is derived from another interface is called SUBINTERFACE. A class which implements an interface is known as implementation.

You can use Inheritance in Java by extending classes and implementing interfaces. Java provides two keywords extends and implements to achieve inheritance. A class which is derived from another class is known as a subclass and an interface which is derived from another interface is called subinterface. A class which implements an interface is known as implementation.



Discussion

No Comment Found