• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shenthamaraiselvi Natchimuthu
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
 
Ramaswamy Srinivasan
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic