blob: 030ff8b8da2f45f49ba3b362a226a9c6dab02fea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
class Person {
char* name;
unsigned age;
void free();
void copyFrom(const Person& other);
public:
Person();
virtual ~Person();
Person(const Person& other);
Person& operator=(const Person& other);
Person(Person&& other);
Person& operator=(Person&& other);
friend bool operator==(const Person& left, const Person& right);
friend bool operator!=(const Person& left, const Person& right);
};
|