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
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What is microsoft c++ redistributable?
When should we use container classes instead of arrays?
How can virtual functions in c++ be implemented?
Do you know the use of vtable?
What are c++ storage classes?
What is a pointer how and when is it used?
What are punctuators in c++?
What is size_type?
Explain the properties and principles of oop.
What are the extraction and insertion operators in c++? Explain with examples.
What is scope operator in c++?
What is the full name of logo?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What language does google use?