What are the three types of access specifiers in C++?
Answer Posted / nashiinformaticssolutions
1. Public: Every student in the class is reachable from anywhere within the application.
2. Private: Only member functions within the class have access to class members.
3. Protected: Any subclass of the class or the member functions within the class can access class members.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is c++
What is the use of endl in c++ give an example?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is void pointer in c++ with example?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What does catch(…) mean?
What is the limitation of cin while taking input for character array?
What is heap sort in c++?
Which operations are permitted on pointers?
Does c++ have string data type?
Write a recursive program to calculate factorial in c++.
How do you clear a buffer in c++?
Define copy constructor.
What is a rooted hierarchy?
What is meaning of in c++?