CSE 335 Project  CSE335
CChicken Class Reference

#include <Chicken.h>

Inherits CAnimal.

Public Member Functions

 CChicken ()
 
virtual ~CChicken ()
 
void ObtainChickenInformation ()
 
void DisplayAnimal ()
 
virtual int NumLegs () const
 
- Public Member Functions inherited from CAnimal
 CAnimal ()
 
virtual ~CAnimal ()
 

Static Public Attributes

static const int ChickenNumlegs = 2
 Number of those chicken legs.
 

Private Attributes

std::string mId
 The chicken's ID.
 

Detailed Description

Class that describes a chicken.

Constructor & Destructor Documentation

CChicken::CChicken ( )

Chicken object constructor.

CChicken::~CChicken ( )
virtual

Destructor.

Member Function Documentation

void CChicken::DisplayAnimal ( )
virtual

Display the chicken.

Reimplemented from CAnimal.

virtual int CChicken::NumLegs ( ) const
inlinevirtual

How many legs does this animal have?

Returns
Number of legs (2 for chickens)

Reimplemented from CAnimal.

void CChicken::ObtainChickenInformation ( )

Obtain a chicken description from the user.


The documentation for this class was generated from the following files: