Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / Examples / Student / Student.cpp
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/Student/Student.cpp
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, 34 deletions
-rw-r--r--Sem. 11/Examples/Student/Student.cpp34
diff --git a/Sem. 11/Examples/Student/Student.cpp b/Sem. 11/Examples/Student/Student.cpp
deleted file mode 100644
index 8b5b04c..0000000
--- a/Sem. 11/Examples/Student/Student.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "Student.h"
-
-Student::Student(const char* name, int age, size_t fn) : Person(name, age)
-{
- setFn(fn);
-}
-
-size_t Student::getFn() const
-{
- return fn;
-}
-
-void Student::setFn(size_t fn)
-{
-
- if (fn < 100)
- fn = 100;
- this->fn = fn;
-}
-
-// The compiler will make:
-
-//Student(const Student& other) : Person(other), fn(other.fn), grade(other.grade) OK!!!
-//{}
-
-//Student& operator=(const Student& other) OK!!!!
-//{
-// if (this != &other)
-// {
-// Person::operator=(other); //handles the deletion and copying of the base class
-// fn = other.fn;
-// }
-// return *this;
-//} \ No newline at end of file