what are Access specifiers in C++ class? What are the types?
Answer / Rahul Kumar Nailwal
Access specifiers in a C++ class control access to its members. They can be public, private, or protected. Public members are accessible from anywhere, while private members are only accessible within the class and its friends. Protected members have the same access as private members, but they can also be accessed by derived classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of string in c++?
Describe the syntax of single inheritance in C++?
Who discovered c++?
Write a corrected statement in c++ so that the statement will work properly. x + y=z;
Is c++ vector a linked list?
Explain the need for "Virtual Destructor"?
What issue do auto_ptr objects address?
what Is DCS ? what i will get benefit when i did?
How did c++ start?
What are the four partitions in which c++ compiler divides the ram?
Which is the best c++ compiler for beginners?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?