Multiple choice

Which of the following is used for calling constructor?

  1. this

  2. super

  3. both (1) and (2)

  4. none of these

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

'this' is used for calling same class constructor, and 'super' is used for calling parent class constructor. So, this is the most appropriate answer.