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
Using a smart pointer can we iterate through a container?
How is c++ different from java?
Why is c++ is better than c?
Write about the role of c++ in the tradeoff of safety vs. Usability?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What is the difference between structure and class?
What flag means?
What do you understand by a pure virtual member function?
Explain what is polymorphism in c++?
Tell me can a pure virtual function have an implementation?
Can java be faster than c++?
Can constructor be private in c++?
what is oops and list its features in c++?
Explain how we implement exception handling in c++?
What is a container class? What are the types of container classes in c++?