-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCourse.h
53 lines (37 loc) · 1.33 KB
/
Course.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// Created by Bekir Sadık Altunkaya on 20.03.2024.
//
#ifndef SCHOOLSYSTEM_COURSE_H
#define SCHOOLSYSTEM_COURSE_H
#include <iostream>
#include <string>
#include "Student.h"
namespace PA3
{
class Student;//to prevent circ. depend.
class Course {
private:
std::string code;
std::string name;
Student** students;
int studentCount;
int studentCapacity;
public:
//some getters and setters defined even not used, good practice IMO
Course();
Course(const std::string &newCode, const std::string &newName);
~Course();
const std::string &getCode() const{return code;}
void setCode(const std::string &newCode){code=newCode;}
const std::string &getName() const{return name;}
void setName(const std::string &newName){name = newName;}
void PrintAllStudentsOfCourse();
int getStudentCount() const{return studentCount;}
void setStudentCount(int newStudentCount){studentCount=newStudentCount;}
Student** getStudents() const{return students;}
void setStudents(Student** newStudents){students=newStudents;}
int getStudentCapacity() const{return studentCapacity;}
void setStudentCapacity(int newStudentCapacity){studentCapacity=newStudentCapacity;}
};
}
#endif //SCHOOLSYSTEM_COURSE_H