Abstraction In Java 1

in Hindi - Abstraction In Java 1



not yet

Source Code :

RUNabstract class A{
      
 abstract void show();
 
 void display(){
 
 System.out.println("Class A");     
 }     
 }
 
 class B extends A{
      
 void show(){
      
 System.out.println("Class B");     
 }     
 }
 
 class Demo1{
      
 public static void main(String args[]){
      
 B obj = new B();
 obj.show();
 obj.display();
 }
}