Posted by novice on April 25, 2001 at 01:42:06:
In Reply to: question about the check sheet posted by meme on April 24, 2001 at 21:49:01:
: I am not sure I quiet understand what it means by : creature provides type informtion via a public member functions... does this mean we shouldn't have GetType() function in our classes? if not, how else are we supposed to provide the type information?
If you designed your inheritance similar to Mr. McQ's and have used polymorphism in your project, your program should be able to figure out which type of object it's talking bout and which Display() or Tick() or Forage() to use at one point even though you are dealing with lifeform.
Post a Followup