From 335c0fca5c74c263c8ff21b2db193b423e46c4fe Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Fri, 20 Sep 2019 14:56:56 +0300 Subject: Add files via upload --- Big4AndInheritance/Students/User.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Big4AndInheritance/Students/User.h') diff --git a/Big4AndInheritance/Students/User.h b/Big4AndInheritance/Students/User.h index 4bcfe98..c466ef4 100644 --- a/Big4AndInheritance/Students/User.h +++ b/Big4AndInheritance/Students/User.h @@ -1 +1,16 @@ -d +#include +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(); +}; -- cgit v1.3.1-23-gd82d