Anonymous
public cpp v1 · immutable#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;}