Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4 / InformaticsStudent.h
diff options
context:
space:
mode:
Commit112a0d344da9e66d20ee9ab5d488e59c5d52e6ad (patch)
Author
 Angeld55 <angel_dimitriev@abv.bg>
2020-04-09 18:09:42 +0300
Committer
 Angeld55 <angel_dimitriev@abv.bg>
2020-04-09 18:09:42 +0300
Filese3bb9cf17c24a3b53c746d9142906d550d549465 /Big4/InformaticsStudent.h
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.tar
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.tar.gz
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.zip
Parentec26fab32d144b436d08f9da6049bd053156d783 (diff)
added new examples
1 files changed, 0 insertions, 40 deletions
-rw-r--r--Big4/InformaticsStudent.h40
diff --git a/Big4/InformaticsStudent.h b/Big4/InformaticsStudent.h
deleted file mode 100644
index 6e9d743..0000000
--- a/Big4/InformaticsStudent.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-// Голямта 4-ка - Функции, които трябва да разпишем, САМО когато имаме динамична памет в класа.
-
-// 1.Defualt constructor InformaticsStudent();
-// 2.Copy-constructor InformaticsStudent(const InformaticsStudent& other);
-// 3.operator= InformaticsStudent& operator=(const InformaticsStudent& other);
-// 4.Destructor ~InformaticsStudent()
-// (Най-лесно е като си разпишем функция за копиране CopyFrom и функция за триене Free())
-
-#pragma once
-#include <iostream>
-
-class InformaticsStudent
-{
-private:
- char* name;
- int fn;
-
- void CopyFrom(const InformaticsStudent& other);
- void Free();
-
-public:
- /// BIG 4 starts here
-
- InformaticsStudent();
- InformaticsStudent(const InformaticsStudent& other);
- InformaticsStudent& operator=(const InformaticsStudent& other);
- ~InformaticsStudent();
- // BIG 4 ends here
-
- InformaticsStudent(const char* name, int fn);
-
- void setName(const char* name);
- void setFn(int fn);
- const char* getName() const;
- int getFn() const;
-
- void printStudent() const;
-
-};