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 are the various storage classes in C++?
Which software is best for coding?
What are shallow and deep copy?
Does c++ cost money?
What gives the current position of the put pointer?
Write a struct time where integer m, h, s are its members?
What are the basics of local (auto) objects?
What are built-in functions? What is the syntax for the definition?
Declare a class vehicle and make it an abstract data type.
Can I learn c++ as my first language?
What things would you remember while making an interface?
What is encapsulation in c++?
What does catch(…) mean?
How do I use turbo c++?
Do you know what are pure virtual functions?