Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  javs
Language: JAVA
Code:
class a{

     a(){
     System.out.println("class a");
     }
     public String toString(){return "jhonny";}

}

class b extends a{


     b(){
     System.out.println(b.class);
     }

}

class c extends b
{     
c()
{
System.out.println(c.class);
}

}


class demo2{


public static void main(String a[]){
c obj=new c();
System.out.println(obj);     
}
     
}     
Comments: