Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

hybrid inheritance in java

public class A
{
    // Methods and Fields of class A
}
public interface interfaceB 
{
  // Methods and Fields of InterfaceB
}
public interface interfaceC 
{
  // Methods and Fields of InterfaceC
}
public class D extends A implements InterfaceB,InterfaceC
{
    // Implementation of the method defined in Interfaces, InterfaceB and InterfaceC

    // Methods of class D
   
}
Source by www.codingninjas.com #
 
PREVIOUS NEXT
Tagged: #hybrid #inheritance #java
ADD COMMENT
Topic
Name
2+1 =