what is the private and public in the c++?
Answers
Answered by
5
Answer:
In C++, there are three access specifiers: public - members are accessible from outside the class. private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
Similar questions
Math,
2 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago
English,
11 months ago