Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

copy of the base class members are given to sub class?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi fnds

while inheriting a subclass from Base class ,copy of the
base class members are given to subclass or
only subclass can access them ?

thanks & regards
sentha
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sentha,

It would be a lot better if you can expand a bit on ur question......

Well.....The access for the superclass members are controlled by the access specifiers, as declared in the superclass. Have u heared about the "public", "private" and "protected" access specifiers?

They will controll the access.

Does this satisfy or Any thing else?

Cheers,
Swamy
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic