Which of the following is the keyword used to refer a superclass constructor in subclass constructor ?(a) extends
(b) super(c) name of the superclass
(d) new
Answers
Answered by
4
In Java programming, the keyword ‘super’ is used to refer a superclass constructor in a subclass constructor.
If the selected method overrides one of the methods of its superclass, the overridden method can be invoked through the use of the keyword ‘super’. Super is often used to refer to a hidden field.
Similar questions