What is the significance of super method? Give on example of the same.
Answers
Answered by
0
Hi, This is your answer
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.
Hope you like my answer☺☺
Anonymous:
hui
Similar questions
Math,
6 months ago
Biology,
6 months ago
Environmental Sciences,
6 months ago
Social Sciences,
11 months ago
Computer Science,
11 months ago
Physics,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago