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
What is a namespace in c++?
What is a pointer with example?
What is exception handling? Does c++ support exception handling?
What do you mean by enumerated data type?
Why we use #include iostream in c++?
What are the stages in the development cycle?
Describe the advantages of operator overloading?
Can union be self referenced?
What are shallow and deep copies?
Explain the isa and hasa class relationships.
What are static and dynamic type checking?
Explain the difference between using macro and inline functions?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What are the unique features of C++.
Can a function take variable length arguments, if yes, how?