super keyword in java
- 17th Aug 2017
- 0
- 2783
- how to use super keyword in java importance of super keyword in java significance of super keyword in java super keyword in java super keyword in java with an example when to use 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 = " […]