All pastes #837687 Raw Edit

Anonymous

public cpp v1 · immutable
#837687 ·published 2007-12-29 21:16 UTC
rendered paste body
#include <iostream>#include <string>using namespace std;class Pet {public:	Pet(string name = "Feeks", int hunger = 0, int boredom = 0);	void Talk();	void Eat(int food = 4);	void Play(int fun = 4);private:	int m_hunger;	int m_boredom;	string m_name;	int GetMood() const;	void PassTime();}Pet::Pet(std::string name, int hunger, int boredom) {	m_hunger = hunger;	m_boredom = boredom;	m_name = name;}