Multiple choice

Which of the following statements is correct? A. super keyword is used to access the constructor of superclass from subclass constructor. B. super keyword is used to access the variable of superclass from the subclass.

  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

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

Both the given statements are true that is the super keyword is used to access the constructor of superclass and variable from the subclass.