Top Categories
8.20 What is Interface in java with example
- Category:
- Sub Category:
Java does not support multiple inheritance because A Java class can only extend one parent class.Multiple inheritance is not allowed. with the help of "Interface" we can use multiple inheritance. Interfaces are not classes, however, and an interface can extend more than one parent inter
Java does not support multiple inheritance because A Java class can only extend one parent class.Multiple inheritance is not allowed. with the help of "Interface" we can use multiple inheritance. Interfaces are not classes, however, and an interface can extend more than one parent interface. The extends keyword is used once, and the parent interfaces are declared in a comma-separated list.