GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 177 of 185    Print  
Access to Private Base Class Data
To allow derived class functions to access private base class data, what should you do?
A. You should use a private base class function.
B. You should use a public or protected base class function.
C. You should not make the base class data private.
D. You should do nothing; the derived class has direct access.
E. You should do nothing; it is not possible for a derived class to access the functions of a base class.



  
Total Answers and Comments: 3 Last Update: October 24, 2008     Asked by: prettyfox 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 13, 2008 08:56:46   #1  
JunhuiCHEN Member Since: September 2008   Contribution: 1    

RE: Access to Private Base Class Data
E. but friend should be one solution.
 
Is this answer useful? Yes | No
September 29, 2008 02:05:38   #2  
hrisheekesh.kale27 Member Since: September 2008   Contribution: 4    

RE: Access to Private Base Class Data
E. but making the base class data protected is a good solution.

 
Is this answer useful? Yes | No
October 24, 2008 16:19:04   #3  
iftikharahmad Member Since: October 2008   Contribution: 1    

RE: Access to Private Base Class Data
B. You should use a public or protected base class function.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape