super keyword in java

The “super” keyword refers to the super-class of the class in which the keyword is used. It is used to access variables and methods of a super class from a sub class. public class Person{     protected int age;           protected displayAge() {         System.out.println("Age = " […]

Share this article on