Multilevel Inheritance

in Hindi - Multilevel Inheritance

not yet

Source Code :

RUNclass A
 {  
 String str1="Hello ";  
 }  
 
 class B extends A
 { 
 String str2="my ";  
 }
 
 class C extends B
 { 
 String str3="Friends";  
 
 public static void main(String args[])
 {
 
 C obj=new C(); 
 
 System.out.print(obj.str1);  
 System.out.print(obj.str2);  
 System.out.println(obj.str3);  
 }
   
 }