English, asked by yash27447, 5 months ago

5. What is the private and public in the C++?​

Answers

Answered by gurmeetkauridh1977
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. You will learn more about Inheritance later.

Explanation:

First you follow then i will follow

and like the answer plz plz

Similar questions