Super KeyWord in Java
Super KeyWord in Java Super:- Super keyword is used to Call the Super class variable. Call the super class constructor. Call the super class methods. 1. Call the Super class variable : Its mandatory to use when derived class variables and base class variables names...
Hiding of Base Class member variable from sub class in java
Hiding of Base Class member variable from sub class in java If a super class and sub class have members with the same name then super class members are still inherited but they are hidden by the member of sub class. We can access them by qualifying with keyword super....
Use of private member variable of super class in subclass.
Use of private member variable of super class in subclass What you will learn? How to access private member variable of parent class into child class. Hiding super class variable. Some Important factors An inherited member is that member of base class that is freely...
Object Oriented Programming in JAVA – Inheritance
Object Oriented Programming in JAVA - Inheritance What is Inheritance? The main purpose of the inheritance is code extensibility whenever we are extending automatically the code is reused. In inheritance one class giving the properties and behavior and another class...