class A
{
public void aShow()
{
System.out.println("A Show");
}
}
class B extends A
{
public void bShow()
{
aShow();
System.out.println("B Show");
}
}
public class ClassCaller
{
public static void main(String[] args)
{
new B().bShow();
}
}
{
public void aShow()
{
System.out.println("A Show");
}
}
class B extends A
{
public void bShow()
{
aShow();
System.out.println("B Show");
}
}
public class ClassCaller
{
public static void main(String[] args)
{
new B().bShow();
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.