Frogs design

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(Deleted old stuff)
Line 11: Line 11:
 
* ''Toad''s don’t have the same lifecycle as ''Frog''s, but they look and act a lot like ''Frog''s.
 
* ''Toad''s don’t have the same lifecycle as ''Frog''s, but they look and act a lot like ''Frog''s.
 
* ''Toad''s eat ''AdultFrogs''.
 
* ''Toad''s eat ''AdultFrogs''.
 +
 +
== Broken heuristics ==
 +
 +
* [[Riel's heuristics]]
 +
** 3.9 [[Avoid verb classes]]: The ''Move'' interface is a verb. It could be called ''Movable'' or similar (although that name is still not great for other reasons)

Revision as of 01:49, 20 July 2009

An OO model of frogs. This beautiful design appeared in the 2004 427 exam.

Frogs.gif

Design notes

  • This design models the lifecycles of Frogs.
  • A Frog begins life as an Egg, grows into a Tadpole and then an AdultFrog.
  • A FrogBrain belongs to a Frog and manages its behaviour.
  • There is one Biologist, Igor, who sometimes moves Frogs around. Igor has been known to fry their legs in white wine.
  • Toads don’t have the same lifecycle as Frogs, but they look and act a lot like Frogs.
  • Toads eat AdultFrogs.

Broken heuristics

Personal tools