Multiple choice

Which of the following is the implementation of the class structure given below?

  1. class A

    { } class B { } class C implements A,B { }|

  2. class A

    { } class B { } class C implement A,B { }|

  3. class A

    { } class B { } class C extends A,B { }|

  4. class A

    { } class B { } class C extend A,B { }|

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The implementation in Java for the given structure is as follows: class A { } class B { } class C implements A,B { }