3. What are the differences between private and public access
specifires?
Answers
Answered by
7
Answer:
A public member is accessible from anywhere outside the class but within a program. You can set and get the value of public variables without any member. 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
Answered by
3
Answer:
A public member is accessible from anywhere outside the class but within a program. You can set and get the value of public variables without any member. A private member variable or function cannot be accessed, or even viewed from outside the class.Feb 28, 2018
Similar questions
Physics,
3 months ago
Psychology,
3 months ago
Math,
7 months ago
Math,
11 months ago
Math,
11 months ago