All pastes #464717 Raw Edit

Something

public text v1 · immutable
#464717 ·published 2007-04-29 17:49 UTC
rendered paste body
// Stephen Jackson
// Section Wilkerson
// 4 / 4 / 07
// Something about cows

#include "farmer.h"

using namespace std;

//Creates the farmer
//Pre: A Name
//post: The created farmer
farmer::farmer(string Name)
{
  fName = Name;
}
//Defeats a cow
//Pre: A bovine
//post: A dead bovine
void farmer::eliminateInfidel(bovine &aCow)
{
  aCow.bDead = true;
}
//Makes a bull a steer
//Pre: A cow
//post: If they were a bull, they become a steer, otherwise, they are the same.
void farmer::castrate(bovine &aCow)
{
  if(aCow.bClass == BOVINE_BULL_CLASS)
    aCow.bClass = BOVINE_STEER_CLASS;
}