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 latest c++ version?
What are the uses of c++ in the real world?
What are the differences between the function prototype and the function defi-nition?
How should runtime errors be handled in c++?
What is a forward referencing and when should it be used?
Which c++ operator cannot overload?
What is the difference between c++ and turbo c++?
Which is the best c++ compiler?
What is runtime polymorphism in c++?
What does std :: flush do?
What are the advantages of c++?
What are containers in c++?
Is c++ a good beginners programming language?
Where are setjmp and longjmp used in c++?
What is math h in c++?