What do you mean by public protected and private in c++?
Answer Posted / Satyendra Kumar Yadav
In C++, access specifiers are used to control the visibility of class members. Public members can be accessed from anywhere, Protected members can only be accessed within the same class and its derived classes, while Private members can only be accessed within the same class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers