Monday, June 18, 2012
How is object completely encapsulated?
All the instance variables should be declared as private and public getter and setter methods should be provided for accessing the instance variables.
Labels:
java interview questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment