What are the differences between public, private, and
protected access?
Answer Posted / golledla prathap reddy
public data can access anybody in the program.
private data can access olny members of that class.
protected also same like private but the difference is it
can access by derive class also.
we can see the use of protected data in inheritance.
Is This Answer Correct ? | 64 Yes | 12 No |
Post New Answer View All Answers
Describe the process of creation and destruction of a derived class object?
Explain the isa and hasa class relationships. How would you implement each?
What do you mean by inheritance in c++?
What is atoi?
What is c++ hash?
How to allocate memory dynamically for a reference?
What is c++ manipulator?
Define 'std'.
When is the destructor called?
what is a class? Explain with an example.
Is c++ a good first language to learn?
What is guard code in c++?
What are the various operations performed on stack?
Define upcasting.
What language is a dll written in?