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 does iomanip mean in c++?
What parameter does the constructor to an ofstream object take?
Is it possible to write a c++ template to check for a function's existence?
Is map sorted c++?
Can comments be nested?
Explain the uses of static class data?
What is a dynamic binding in c++?
What is null pointer and void pointer?
What is the first name of c++?
Explain the virtual inheritance in c++.
Write about an iterator class?
If a header file is included twice by mistake in the program, will it give any error?
How do you traverse a btree in backward in-order?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
How can you create a virtual copy constructor?