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
Which bitwise operator is used to check whether a particular bit is on or off?
Is eclipse good for c++?
Explain selection sorting?
What is a constructor and how is it called?
What is a linked list in c++?
Where can I run c++ program?
Which of the following is evaluated first: a) && b) || c) !
What are mutator methods in c++?
Can we change the basic meaning of an operator in c++?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Is c++ a high level language?
How did c++ get its name?
What is the difference between structures and unions?
What are the advantages of using friend classes?
Is c++ a good beginners programming language?