Advertisements
Advertisements
Question
In what way is a class Encapsulated?
Short Answer
Solution
If data members of the class are declared private then they can be used only within the member methods. A class is Encapsulated in this way.
shaalaa.com
Is there an error in this question or solution?