th3dumbguy
Senior member
im not taking the test myself but my friend is and he wants me to ask something so he can be sure so here it goes...
public interface A
public class B implements A
public class C extends B
which declarations are right
B thisC = new C();
A thisB = new B();
A thisA = new A();
which ones of those would work?
i know the first one works but does the 2nd and 3rd work?
public interface A
public class B implements A
public class C extends B
which declarations are right
B thisC = new C();
A thisB = new B();
A thisA = new A();
which ones of those would work?
i know the first one works but does the 2nd and 3rd work?