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 a lambda function c++?
How java is different from c and c++?
Which field is used in c++?
Can comments be longer than one line?
Write a recursive program to calculate factorial in c++.
What is the full form nasa?
Write about the use of the virtual destructor?
what are the decision making statements in C++? Explain if statement with an example?
What is java and c++?
What is the best way to declare and define global variables?
What is the main purpose of overloading operators?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
How would you obtain segment and offset addresses from a far address of a memory location?
What is c++ hiding?
Difference between inline functions and macros?