#include <Cow.h>
Inherits CAnimal.
|
| enum | Type { Bull,
BeefCow,
MilkCow
} |
| | The types of cow we can have on our farm.
|
| |
|
|
static const int | NumCowLegs = 4 |
| | Number of legs on a cow.
|
| |
|
|
std::string | mName |
| | The cow's name.
|
| |
|
Type | mType = MilkCow |
| | The type of code: Bull, BeefCow, or MilkCow.
|
| |
|
double | mMilkProduction = 0 |
| | The milk production for a cow in gallons per day.
|
| |
| void CCow::DisplayAnimal |
( |
| ) |
|
|
virtual |
Display information about this cow.
Reimplemented from CAnimal.
| virtual int CCow::NumLegs |
( |
| ) |
const |
|
inlinevirtual |
How many legs does this animal have?
- Returns
- Number of legs (4 for cows)
Reimplemented from CAnimal.
| void CCow::ObtainCowInformation |
( |
| ) |
|
Obtain information from the user about this cow.
Asks the user for the information that describes a cow.
The documentation for this class was generated from the following files: