What are the differences between public, private, and
protected access?
Answer Posted / alka choubey
public:class members are access from the outside the class.
private:class members are access only within the class.
protected:class members can access inside the same package.
| Is This Answer Correct ? | 29 Yes | 13 No |
Post New Answer View All Answers
What is the sequence of destruction of local objects?
Difference between Abstraction and encapsulation in C++?
What do you mean by early binding?
What is enum c++?
What is an adaptor class in c++?
what is Loop function? What are different types of Loops?
Write a function that swaps the values of two integers, using int* as the argument type?
How do I use arrays in c++?
How is new() different from malloc()?
What is the meaning of string in c++?
Is c++ high level programming language?
How can you quickly find the number of elements stored in a static array?
What is the best c++ book?
What do you mean by storage classes?
Are c and c++ different?