Name the member access specifiers used in class
Answers
Answered by
1
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.
Answered by
1
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
English,
1 day ago
Math,
3 days ago
English,
3 days ago
India Languages,
8 months ago
Biology,
8 months ago