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
Explain queue. How it can be implemented?
Difference between overloaded functions and overridden functions
What is null and void pointer?
What is general form of pure virtual function? Explain?
Is java based off c++?
What is DlgProc?
What is the difference between a declaration and a definition?
What is a tuple c++?
What does it mean to declare a destructor as static?
What does int * mean in c++?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Why cout is used in c++?
Can we run c program in turbo c++?
What can I use instead of namespace std?
How a pointer differs from a reference?