a program describing a room of cats which can hold up to seven cats, each time a key (e.g. Enter) is pressed. Each cat is an object instantiated from class Cat - defined in file lab2_cats.h. Each cat object, when dynamically instantiated, randomly chooses a fur (i.e., “black”, “grey”, or “brown”), an eye colour (i.e., “green”, “blue”, or “brown”) and a hair length (i.e., “short” or “long”). Provide get and set methods for these attributes. Carefully consider which get and set methods should be public and which should be private – all member functions are defined in file lab2_cats.cpp. Certain combinations of cats result in fights breaking out.
-
Notifications
You must be signed in to change notification settings - Fork 0
an162/room-of-cats
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
a program describing a room of cats
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published