#include #include using namespace std; class Person { private: string name; int age; public: person() { } void setAge(int a) { age = a; } int getAge() { return age; } }; int main() { Person p1; p1.setAge(21); cout << "Person age is " << p1.getAge() << endl; }