adspace


what are Access specifiers in C++ class? What are the types?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

daily Routine of father

1485


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1165


Can union be self referenced?

1267


What is the latest version on c++?

1207


What character terminates all character array strings a) b) . c) END

1395