Same rule,
If this is not a compilable code, why?
If this is, what's the output?
public class test extends B{
public test(){
this.printA();
this.printB();
}
public static void main(String args[]){
new test().printA();
}
}
abstract class B extends A{
public void printA(){
System.out.println("class B");
}
}
abstract class A{
public void printB(){
System.out.println("class A");
}
}
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Last edited by sukatoa : 05-15-2008 at 08:58 PM.
|