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
What is the difference between struct and class?
Mention the ways in which parameterized can be invoked.
Why c++ is better than c language?
What is flush programming?
When should you use global variables?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Is c++ a software?
What is ifstream c++?
How should a contructor handle a failure?
What is the full form of india?
What are static type checking?
What is #include iostream h in c++?
Explain object slicing in c++?
What is the full form nasa?
How is c++ different from java?