naveenthrgni
chat room [private] created by naveenthrgni
class World{
World where(){
System.out.println("I think about our world");
return this;
}
}
class CounSuperDemo extends World{
World where(){
System.out.println("I think about our country");
Return new World();
}
}
class State extends CounSuperDemo{
World where(){
System.out.println("I think about our State");
return new CounSuperDemo();
}
}
class SuperDemo extends State{
public static void main(String[] args) {
CounSuperDemo c=new State();
c.where().where().where();
}
If this chat room is illegal, click here to report.
|
Guestbook | If you're the owner of this room, please log in to manage your chat room.
|
|