What are the main uses of the super keyword?

DWQA QuestionsCategory: JavaWhat are the main uses of the super keyword?
satya asked 11 months ago

What are the main uses of the super keyword?

1 Answers
Editor Staff answered 11 months ago

There are the following uses of super keyword.
super can be used to refer to the immediate parent class instance variable.
super can be used to invoke the immediate parent class method.
super() can be used to invoke immediate parent class constructor.