> Say I have interface A and class B.
> Now I creating class C extands B implements A
> who is C's super class? the class or the interface?
Both A and B are supertypes of C.
> Can I write somthing like this?
>
> A name = new C() or B name = new C()?
Your class C is a subtype of both A and B, so both assignments are legal.
> Hi All
>
> Say I have interface A and class B.
> Now I creating class C extands B implements A
> who is C's super class? the class or the interface?
The class, because you said superclass.
> Can I write somthing like this?
>
> A name = new C() or B name = new C()?
>
> Thank u in advance
> Eyal
Do you have access to a compiler? You could try it and see faster than you
would get an answer from the forum.