Extending Interfaces Inheritance

in Hindi - Extending Interfaces Inheritance



not yet

Source Code :

RUNinterface A{
 void show();     
      
 }
 interface B extends A{
      
 void display();     
      
 }
 class Demo implements B{
      
 public void show(){
      
 System.out.print("Hello");     
 }
 public void display(){
      
 System.out.println(" World");     
 }
 }
 public class Main{     
 public static void main(String args[]){
 
 Demo d = new Demo();
 d.show();
 d.display();     
 }     
 }