From 4993c6468aa07e7c6a006a721fe82aaa4413eede Mon Sep 17 00:00:00 2001 From: angeld55 Date: Tue, 17 May 2022 20:42:42 +0300 Subject: added bar task --- Sem. 11/Examples/Person/Person.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Sem. 11/Examples/Person/Person.h (limited to 'Sem. 11/Examples/Person/Person.h') diff --git a/Sem. 11/Examples/Person/Person.h b/Sem. 11/Examples/Person/Person.h deleted file mode 100644 index 826b671..0000000 --- a/Sem. 11/Examples/Person/Person.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include -class Person -{ - char* name = nullptr; - int age = 0; - - void copyFrom(const Person& other); - void free(); - -public: - Person() = default; - Person(const char* name, int age); - - Person(const Person& other); - Person& operator=(const Person& other); - - const char* getName() const; - int getAge() const; - - ~Person(); - void print() const; - -protected: - void setName(const char* name); - void setAge(int age); -}; -- cgit v1.3.1-23-gd82d