Chicken - breedName = "chicken, breed not...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "Chicken.h" using namespace std ; Chicken::Chicken() : newDay(true), breedName("chicken, breed not specified") { } Chicken::Chicken(string b) : newDay(true), breedName(b) { } /* Here are the same constructors as above, but without the use of initializer lists. Chicken::Chicken() { newDay = true ;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: breedName = "chicken, breed not specified" ; } Chicken::Chicken(string b) { newDay = true ; breedName = b ; } */ void Chicken::goToSleep() { newDay = true ; } bool Chicken::wasteGenerated() const { return true ; } string Chicken::breed() const { return breedName ; }...
View Full Document

This note was uploaded on 10/28/2010 for the course CSCI 1113 taught by Professor Staff during the Spring '08 term at Minnesota.

Ask a homework question - tutors are online