What are the three usages of the super keyword in Java?

Java Programming Java8Object Oriented Programming

  • super variable refers immediate parent class instance.
  • super variable can invoke immediate parent class method.
  • super() acts as immediate parent class constructor and should be the first line in child class constructor.
raja
Updated on 12-Mar-2020 10:19:22

Advertisements