Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the main advantage of making data members private and methods public in a class?
It reduces memory usage
It makes the program run faster
It allows multiple inheritance
It provides data protection and controlled access to object's internal state
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!