Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Students / User.h
blob: d84bd7157a57a7ebab4ee5a1189d5a9fd9358141 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#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();
};