What are the differences between public, private, and
protected access?
Answer Posted / prashant kalmodiya
PUBLIC: Specifies that those all members are accessible
from any function.
PRIVATE: Specifies that those members are accessible only
from member functions and friends functions of the class.
PROTECTED: Specifies access to class members in the member-
list up to the next access specifier (public or private)
| Is This Answer Correct ? | 18 Yes | 8 No |
Post New Answer View All Answers
Can a program run without main function?
Can a program run without main?
Is map ordered c++?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
Why pointer is used in c++?
Can you explicitly call a destructor on a local variable?
How would you use the functions sin(), pow(), sqrt()?
What is heap sort in c++?
What is the difference between prefix and postfix versions of operator++()?
What are dynamic type checking?
What does catch(…) mean?
What is #include cstdlib in c++?
What is the keyword auto for?
How do you establish an is-a relationship?
Write is a binary search tree? Write an algo and tell complexity?