What are the differences between public, private, and
protected access?
Answer Posted / bebo
prvate:is accessed by members of that class only.
public:is accessed by members of any class
protected: variables that are visible only
to the class to which they belong, and any subclasses.
| Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
What is the role of C++ shorthand's?
Which operations are permitted on pointers?
Give an example of run-time polymorphism/virtual functions.
What is wrapper class in c++?
What is the difference between *p++ and (*p)++ ?
Is c++ a software?
What is a constructor in c++ with example?
What are vectors used for in c++?
Explain differences between alloc() and free()?
What are the advantages of using typedef in a program?
How does c++ sort work?
Explain what are the sizes and ranges of the basic c++ data types?
What is null pointer and void pointer and what is their use?
What does ios :: app do in c++?
How do I write a c++ program?