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 kind of problems can be solved by a namespace?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
By using c++ with an example describe linked list?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
When does a name clash occur in c++?
Explain terminate() and unexpected() function?
What are the various compound assignment operators in c++?
List the special characteristics of constructor.
Is rust better than c++?
How do you define a class in c++?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
What is a string example?
How do you find out if a linked-list has an end?
Explain how a pointer to function can be declared in C++?
What is the best c++ book for beginners?