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 the differences between new and malloc?
Is c++ proprietary?
How do I run a program in notepad ++?
Difference between pass by value and pass by reference?
What is the function of I/O library in C++ ?
What is a c++ map?
Explain the difference between c++ and java.
what do you mean by volatile variable?
What do you mean by overhead in c++?
What is using namespace std in cpp?
What are c++ redistributables?
Is c++ vector a linked list?
How static variables and local variablesare similar and dissimilar?
What is the c++ programming language used for?
How long it will take to learn c++?