What are the differences between public, private, and
protected access?
Answer Posted / prashanth c patel
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 ? | 21 Yes | 12 No |
Post New Answer View All Answers
What is the difference between the parameter to a template and the parameter to a function?
Should I learn c++ c?
What is class definition in c++ ?
What is virtual destructor? What is its use?
How does the copy constructor differ from the assignment operator (=)?
What is polymorphism in c++? Explain with an example?
what is oops and list its features in c++?
What is the difference between containment and delegation?
What are the methods of exporting a function from a dll?
How is static data member similar to a global variable?
Why should we use null or zero in a program?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
What are the various operations performed on stack?
What is flag in computer?
How much maximum can you allocate in a single call to malloc()?