Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Students / User.h
blob: c466ef42350fa4df52a99a8fafa1018e7cb4e825 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
using namespace std;
class User
{
private:
	char* name;
	int age;
	void CopyFrom(const User& other);
	void Free();
public:
	//User();
	User(const char*name, int age);
	User(const User& other);
	User& operator=(const User& other);
	~User();
};