What are the main uses of the super keyword?

Category: JavaWhat are the main uses of the super keyword?
satya asked 2 years ago

What are the main uses of the super keyword?

1 Answers
Editor">Editor Staff answered 2 years 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.