sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
Ask iit jee aieee pet cbse icse state board community Discussion Response Post to: inheritance??
Forum Index -> Computer Science -> View Full Question like the article? email it to a friend.  
Author Message
ramkumar_november (1270)

Blazing goIITian

Olaaa!! Perrrfect answer. 230  [290 rates]

ramkumar_november's Avatar

total posts: 407    
offline Offline
1. the base class variable is in private section ....... we cannot use it in derived class since private members of a class are not inherited......

if the base class variable is in protected or public section we can use it in derived class........

2. it depends on the visibility mode......if the visibility mode is such that the base class variable is in the public setion of the derived class then the derived class object can use that variable.....



 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya