‹ Back to the paper
Question 1(viii)
1 mark
Computer ScienceISC 2023 Specimen Computer Science Paper 1Short answerInheritance, Interfaces and Polymorphism
Answer the following.
State any one purpose of using the keyword super in Java programming.
Answer
Answer
The keyword
super is used in a subclass's constructor to invoke (call) the constructor of its immediate superclass, so that the inherited data members get initialised by the superclass's own constructor (e.g. super(args); as the first statement).