Frogs design

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
'''An OO model of frogs.''' This beautiful design appeared in the 2004 427 exam.
 
'''An OO model of frogs.''' This beautiful design appeared in the 2004 427 exam.
  
[[image:frogs.gif|500px]]
+
[[image:frogs.gif|900px]]
  
 
== Design notes ==
 
== Design notes ==

Revision as of 04:33, 22 July 2008

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.

Design Critique

This design is perfect. It cannot be faulted.

Personal tools