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
Published on 23-Apr-2018 13:14:17
Advertisements