Multiple Inheritance in Java (using Interface)

Java is an Object Oriented Programming language and supports the feature of inheritance. We cannot have Multiple Inheritance in Java directly due to Diamond Problem but it can be implemented using Interfaces. We have explained this in detail starting with basic introduction to inheritance.


Inheritance is inheriting the properties of one class(Parent class) in the another class(child class). This relation can be defined by using the extends keyword as −


public class child extends parent{
}

The ...

 •  0 comments  •  flag
Share on Twitter
Published on June 11, 2020 06:59
No comments have been added yet.