Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / Examples / Person / Person.h
diff options
context:
space:
mode:
Commit4993c6468aa07e7c6a006a721fe82aaa4413eede (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-05-17 20:42:42 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-05-17 20:42:42 +0300
Files819dc184dc1c4d23ff71bdd5d9d538b8ce32a5de /Sem. 11/Examples/Person/Person.h
Object-oriented_programming_FMI-4993c6468aa07e7c6a006a721fe82aaa4413eede.tar
Object-oriented_programming_FMI-4993c6468aa07e7c6a006a721fe82aaa4413eede.tar.gz
Object-oriented_programming_FMI-4993c6468aa07e7c6a006a721fe82aaa4413eede.zip
Parent8af74b1eeed52119ecaaf57ff6779edbc219c34b (diff)
added bar task
1 files changed, 0 insertions, 27 deletions
-rw-r--r--Sem. 11/Examples/Person/Person.h27
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 <iostream>
-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);
-};