What are the differences between public, private, and
protected access?
Answer Posted / abhay
public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class
protected--->pubic and protecated members of the base class
will become protected in derived class
Private-->pubilc and proteacted members will become private
in derived class
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
what are function pointers?
What is c++ map?
How does the copy constructor differ from the assignment operator (=)?
Which programming language's unsatisfactory performance led to the discovery of c++?
Explain terminate() function?
Why do we use classes in programming?
Is it possible for a member function to delete the pointer, named this?
Can user-defined object be declared as static data member of another class?
Is turbo c++ free?
What is the difference between containment and delegation?
What is the use of register keyword with the variables?
How would you use the functions randomize() and random()?
Explain some examples of operator overloading?
What is the full form of ios?
What return value must conversion operators have in their declaration?