README.md
December 5, 2022 ยท View on GitHub
Description
Probably useful if you want to learn about polymorphism, objects and collections. This is an example of polymorphism running out of control. 1000 generic Beast-class objects are created, each assigned to be either a Dog, Cat, or Mouse. Then, using calls to the Beast class, they try to eat each other, until only one (the biggest) remains. Try messing around with it ... a larger animal can only eat a smaller one, except in the case of mice who can eat an animal of the same size - it's only fair, they start so small.
More Info
Nowt
None, unless I've inadvertently named one of the beasts after your pet and you're sensitive ... ;-)
Dogs nearly always win, by the way.
| Submitted On | 2001-12-04 11:35:04 |
| By | Azrael |
| Level | Intermediate |
| User Rating | 5.0 (20 globes from 4 users) |
| Compatibility | VB 6.0 |
| Category | Object Oriented Programming (OOP) |
| World | Visual Basic |
| Archive File | Eater_Poly393241242001.zip |