Very bad question.
Suitable answer - "None of the above". Сorrect answer is absent.
Encapsulation means that the internal representation of an object is generally hidden from view outside of the object's definition. But situation, when "member fields are declared private but public accessor/mutator methods are provided to access and change their values", is fully equivalent to "member fields are declared public". In general JavaBeans specification is a typical example of "weak encapsulation".
About Question enthuware.ocajp.i.v7.2.1322 :
Moderators: Site Manager, fjwalraven
-
- Posts: 18
- Joined: Wed Feb 11, 2015 10:48 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1322 :
You are right. The explanation mentions the same thing that you've quoted. The option has been updated.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 1 guest