Re: question about the check sheet


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]