GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Wipro
Go To First  |  Previous Question  |  Next Question 
 Wipro  |  Question 11 of 15    Print  
In private inheritance derived class members can access base class members that are 1) Public 2) Private 3) Protected
A) 1 & 2 B) 1 & 3 C) 2 & 3 D) 1,2 & 3

  
Total Answers and Comments: 8 Last Update: August 12, 2009     Asked by: wproed 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sujana
 
A private member cannot be accessed in derived class , to access in the subclass the member has to be declared protected soo answer is public n protected ANS [B]

Above answer was rated as good by the following members:
rocky3d
November 03, 2006 10:55:13   #1  
sheshu        

RE: In private inheritance derived class members can a...
ans:-> C
 
Is this answer useful? Yes | No
November 29, 2006 12:11:58   #2  
sujana        

RE: In private inheritance derived class members can a...
A private member cannot be accessed in derived class to access in the subclass the member has to be declared protected soo answer is public n protected ANS [B]
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 09, 2007 00:25:38   #3  
Md Hedaitullah        

RE: In private inheritance derived class members can a...

Derived class can access only Pubic and Protected members of the base class.


 
Is this answer useful? Yes | No
May 05, 2007 03:41:39   #4  
vasu        

RE: In private inheritance derived class members can a...

private members are not inherited.

To use the base class variables in derived classes we must inherit these variables in protected or private mode.


 
Is this answer useful? Yes | No
August 20, 2007 08:30:59   #5  
lakshmienator        

RE: In private inheritance derived class members can a...
Ans is C
Both private and protected can access it

 
Is this answer useful? Yes | No
August 24, 2007 05:57:49   #6  
poomathi        

RE: In private inheritance derived class members can a...
private class cannot access the derives class.it has access only within the class...so ans is B...
 
Is this answer useful? Yes | No
November 07, 2007 07:23:39   #7  
sharma.mahesh3 Member Since: October 2007   Contribution: 14    

RE: In private inheritance derived class members can a...
B.
since a child class can not access private member from base class

 
Is this answer useful? Yes | No
August 12, 2009 04:04:31   #8  
Rahul R Todekar Member Since: August 2009   Contribution: 4    

RE: In private inheritance derived class members can access base class members that are 1) Public 2) Private 3) Protected A) 1 & 2 B) 1 & 3 C) 2 & 3 D) 1,2 & 3
D) 1 2 & 3
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape