#include using namespace std; class Cat { public: Cat(); ~Cat(); void Meow(); unsigned int age() { return m_age; } void age(unsigned int v) { m_age = v; } float weight() { return m_weight; } void weight(float v) { m_weight = v; } private: unsigned int m_age; float m_weight; }; int main() { Cat Frisky; cout << "Frisky.age = " << Frisky.age() << endl; cout << "Frisky.weight = " << Frisky.weight() << endl; Frisky.Meow(); return 0; } Cat::Cat() { m_age = 1; m_weight = 5; } Cat::~Cat() { cout << "object being deleted" << endl; } void Cat::Meow() { cout << "meow." << endl; }