Question OOP-INH-0004
EasyWhat does the 'super' keyword do in Java?
- A.
Refers to the parent class, e.g. to call its constructor or methods
- B.
Makes a method static
- C.
Show answer and explanation
Answer: A
super(...) calls the parent constructor; super.method() calls the parent's version of a method.