Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person {
- int age;
- char* name;
- public:
- Person(): age(0), name(nullptr){}
- Person(const Person& other) : age(other.age), name(other.name) {}
- Person& operator=(const Person& other) {
- this->age = other.age;
- this->name = other.name;
- return *this;
- }
- ~Person(){}
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement