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
Which software is used for c++ programming?
What are the restrictions apply to constructors and destructors?
Should the member functions which are made public in the base class be hidden?
What is the use of structure in c++?
How do I make turbo c++ full screen?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
Explain the virtual inheritance in c++.
Mention the ways in which parameterized can be invoked. Give an example of each.
What is a memory leak c++?
What is c++ 11 and c++ 14?
What is friend class in c++ with example?
Explain the differences between list x; & list x();.
What is c++ used for in games?
What is c++ runtime?
Do we have to use initialization list in spite of the assignment in constructors?