Advertisements
Advertisements
Question
What will happen if data members are declared private?
Short Answer
Solution
They can only be accessible within the class in which they are declared. The data remains hidden from other classes.
shaalaa.com
Is there an error in this question or solution?