Talk:2005 Exam answers

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(New page: 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...)
 
Line 1: Line 1:
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.  --[[User:Aidan Bebbington|Aidan]] 03:35, 14 October 2009 (UTC)
+
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.  --[[User:Aidan Bebbington|Aidan]] 03:35, 14 October 2009 (UTC)

Revision as of 03:37, 14 October 2009

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)

Personal tools