Web
Analytics
Hiding of Base Class member variable from sub class in java - Tutorial

For Consultation : +91 9887575540

Stay Connected :

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.

Example

 

 

 
Download Source Code

 

Select your currency