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
Explain bubble sorting.
What do you mean by friend class & friend function in c++?
Is c++ a dying language?
What new()is different from malloc()?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Can comments be longer than one line?
Is c++ a programming language?
What is size_type?
How can we access protected and private members of a class?
What are the differences between java and c++?
Write a recursive program to calculate factorial in c++.
What is a null object in c++?
When should we use multiple inheritance?
What is null c++?
Why do we use using namespace std in c++?