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 the maximum value of a unsigned char a) 255 b) 256 c) 128
What is null and void pointer?
Can union be self referenced?
Write about the local class and mention its use?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What does new do in c++?
What is ios flag in c++?
How new/delete differs from malloc()/free?
What are the benefits of pointers?
Explain data encapsulation?
What is abstract keyword in c++?
When should I use unitbuf flag?
What is the use of this pointer in c++?
What is general format for a prototype?
Why can templates only be implemented in the header file?