Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 09 / task (not finished) / Grade.h
diff options
context:
space:
mode:
Commitb9df311eb4e479c150eeb112df91a3ce4dd111ba (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2021-04-16 22:38:37 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2021-04-16 22:38:37 +0300
Files50ab89d7dffcda47e5c150d0525f5561a175e52f /Sem. 09/task (not finished)/Grade.h
Object-oriented_programming_FMI-b9df311eb4e479c150eeb112df91a3ce4dd111ba.tar
Object-oriented_programming_FMI-b9df311eb4e479c150eeb112df91a3ce4dd111ba.tar.gz
Object-oriented_programming_FMI-b9df311eb4e479c150eeb112df91a3ce4dd111ba.zip
Parentce24f073c5e946b5bad600fca1ca8808657ee9ce (diff)
9
1 files changed, 26 insertions, 0 deletions
-rw-r--r--Sem. 09/task (not finished)/Grade.h26
diff --git a/Sem. 09/task (not finished)/Grade.h b/Sem. 09/task (not finished)/Grade.h
new file mode 100644
index 0000000..d0cb2e7
--- /dev/null
+++ b/Sem. 09/task (not finished)/Grade.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <iostream>
+
+class Grade
+{
+ size_t gradeValue;
+ char* taskName;
+
+ void free();
+ void copyFrom(const Grade& other);
+public:
+ Grade();
+
+ Grade(const char* taskName, size_t gradeValue);
+
+ Grade(const Grade& other);
+ Grade& operator=(const Grade& other);
+ ~Grade();
+
+ const char* getTaskName() const;
+ size_t getGrade() const;
+
+ void setTaskName(const char* name);
+ void setGrade(size_t grade);
+}; \ No newline at end of file