Computer Science Canada Objects/Pointers |
Author: | Flikerator [ Thu Apr 06, 2006 12:00 pm ] | ||
Post subject: | Objects/Pointers | ||
How do I make this;
Into an object? I might be thinking about Class, so whichever one makes more sense ^^; |
Author: | Andy [ Thu Apr 06, 2006 12:01 pm ] |
Post subject: | |
why do you have to make it into a class? a type is also an object, just not an ADT. you can still point to it |
Author: | Delos [ Thu Apr 06, 2006 3:00 pm ] |
Post subject: | |
If you really want to make a Monster Class, simply read Cervantes 3-part Classes tutorial. Really, nothing simpler. Though keep in mind what dodge said, at times you may be better off using types instead of Classes. Though often you'll end up using records of pointers to said Classes anyway. ![]() |