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
Why #include is used?
Which c++ operator cannot overload?
Out of fgets() and gets() which function is safe to use?
What language does google use?
What is the use of typedef?
Do vectors start at 0?
What is c++ code?
Can we use pointers in c++?
What are the advantage of using register variables?
How one would use switch in a program?
State the difference between delete and delete[].
What is the limitation of cin while taking input for character array?
Explain rethrowing exceptions with an example?
Which software is best for c++ programming?
Can user-defined object be declared as static data member of another class?