Computer Science, asked by RishikeshDubey, 1 year ago

what's use of super keyword in java

Answers

Answered by shivamkumarjha447
0
It is used inside a sub-class method definition to call a method defined in the super class. Private methods of the super-class cannot be called. Only public and protected methods can be called by the super keyword. It is also used by class constructors to invoke constructors of its parent class.
Similar questions