English, asked by mnavneeth8979, 8 months ago

What are the difference between private members and public members of a class .how can you make a member as public or private can you make a member as public or private

Answers

Answered by har858
0

Explanation:

A public member is accessible from anywhere outside the class but within a program. A private member variable or function cannot be accessed, or even viewed from outside the class. Only the class and friend functions can access private members.

Similar questions