Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef Person.h
- #define Person.h
- #include <string>
- class Person
- {
- private:
- string name;
- int age;
- public:
- void setName(string);
- void setAge(int);
- string getName() const;
- int getAge() const;
- };
- void setName(string n)
- {
- name = n;
- }
- void setAge(int a)
- {
- age = a;
- }
- string Person.getAge() const;
- {
- return age;
- }
- string Person.getName() const;
- {
- return name;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement