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. 1 2 3 4 5 6 7 8 9 10 11 public class Person{     protected int age;         […]

Share this article on