Do you know what is the default access level?
Submitted by: AdministratorThe access privileges in C++ are private, public and protected. The default access level assigned to members of a class is private. Private members of a class are accessible only within the class and by friends of the class. Protected members are accessible by the class itself and its sub- classes. Public members of a class can be accessed by anyone.
Submitted by: Administrator
Submitted by: Administrator
Read Online C++ Access Control Job Interview Questions And Answers
Top C++ Access Control Questions
☺ | Do you know private, protected and public access control? |
☺ | What is Private Inheritance? |
☺ | Explain different access specifiers for the class member in C++? |
☺ | What is Protected Inheritance? |
☺ | What is Public Inheritance? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |
☺ | C++ Template Interview Questions. |