class AClass
{
public void aCaller()
{
System.out.println("Class : " + getClass());
}
}
class BClass
{
public void bCaller()
{
System.out.println("Class : " + getClass());
}
}
public class Demo extends java.lang.Object
{
public void caller()
{
System.out.println("Class : " + getClass());
}
public static void main(String[] args)
{
Demo demo = new Demo();
demo.caller();
new AClass().aCaller();
new BClass().bCaller();
}
}
{
public void aCaller()
{
System.out.println("Class : " + getClass());
}
}
class BClass
{
public void bCaller()
{
System.out.println("Class : " + getClass());
}
}
public class Demo extends java.lang.Object
{
public void caller()
{
System.out.println("Class : " + getClass());
}
public static void main(String[] args)
{
Demo demo = new Demo();
demo.caller();
new AClass().aCaller();
new BClass().bCaller();
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.