Talk:2005 Exam answers
From CSSEMediaWiki
Revision as of 07:38, 14 October 2009 by Stephen Fitchett (Talk | contribs)
I'm fairly certain that the answer of Implement behavior with abstract state pattern for Question 3 is not strictly correct. That pattern is about behavior within a single inheritance hierarchy, or a single object. I don't think the Law of Demeter applies to situations where one method calls another method in the same object. Still I don't have any alternative suggestions for maxims that violate Law of Demeter. However the Factory Method pattern violates it. --Aidan 03:35, 14 October 2009 (UTC)
- Agreed. I removed it and added some other maxims that I think it conflicts with. --Stephen Fitchett 07:38, 14 October 2009 (UTC)