1.

What Is The Syntax Of Inheritance?

Answer»

You can use either extends of implements keyword to implement Inheritance in JAVA. A CLASS extends ANOTHER class using extends keyword, an interface can extend another interface using extend keyword, and a class can implement an interface using implements keyword in Java.

You can use either extends of implements keyword to implement Inheritance in Java. A class extends another class using extends keyword, an interface can extend another interface using extend keyword, and a class can implement an interface using implements keyword in Java.



Discussion

No Comment Found