Access Modifier : Default

in Hindi - Access Modifier : Default



not yet

Source Code :

RUNclass X{
 
 int x = 6;
 void show(){
 System.out.println("Value of x is "+x);
 }
 } 
 
 public class Y extends X{
      
 public static void main(String args[]){
 
 Y obj = new Y();
 obj.show();
 }
 }