class A {
public A() { System.out.print("A"); }
}
class B {
public B() { System.out.print("B"); }
}
class C {
public C() { System.out.print("C"); }
}
public class D extends C {
private A objA = new A();
private static B objB = new B();
public D() { System.out.print("D"); }
public static void main(String[] args){
new D();
}
}
Login in to like
Login in to comment