Talk:2005 Exam answers
From CSSEMediaWiki
(Difference between revisions)
(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...) |
|||
(One intermediate revision by one user not shown) | |||
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) |
+ | :Agreed. I removed it and added some other maxims that I think it conflicts with. --[[User:Stephen Fitchett|Stephen Fitchett]] 07:38, 14 October 2009 (UTC) |
Latest revision as of 07:38, 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)
- Agreed. I removed it and added some other maxims that I think it conflicts with. --Stephen Fitchett 07:38, 14 October 2009 (UTC)