What is the use of super keyword?

The super keyword calls a method with the same name in the ancestor or ‘super’ class.

If the super keyword is used on its own, without any arguments being specified, all the arguments sent to the current method are passed to the ancestor method.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.