You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to UBC CPSC 210
Hi,
in the Sample Final Solution, an AccommodationManager class and
UserManager class are created to remove/get user and accommodation.
However, can't we just include those methods in WhereNotToStay? Why do
we have to create extra Manager classes for them? Is it because we
want the classes to be more cohesive in which they focus on their
specific responsibilities ?
Thanks~
Paul Carter
unread,
Apr 22, 2011, 3:00:45 PM4/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ubc-cp...@googlegroups.com
> However, can't we just include those methods in WhereNotToStay? Why do > we have to create extra Manager classes for them? Is it because we > want the classes to be more cohesive in which they focus on their > specific responsibilities ?
Right. We now have one class for managing accommodations and another to manage users - these are two different aspects of the system. If we merged these responsibilities into a single class, the resulting class would have poor cohesion. >