Multiple choice

class A { A( ) { } }

class B extends A { } Which statement is true?

  1. Class B'S constructor is public.

  2. Class B'S constructor has no arguments.

  3. Class B'S constructor includes a call to this( ).

  4. None of these.

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

Option B is correct. Class B inherits Class A's constructor which has no arguments. Option A is wrong. Class B inherits Class A's constructor which uses default access. Option C is wrong. There is just no implicit call to this( ).