What will happen if data members are declared private.
21 Likes
Data members declared as private are accessible only inside their own class where they are declared and nowhere else.
Answered By
12 Likes
In what way does a class enforce data hiding?
What are the types of visibility modes used in Java?
What do you understand by 'inheritance'?
What is meant by base class?