so i have this uml diagram and i dont understand much of it, i tried to do the first class but the other 2 i dont understand what i have to do, can you help me with 1 of those?
Person
#name : string
#affiliation : string
+Person(name : string, affiliation : string)
+getName() : string
+getAffiliation() : string
+setNume(affiliation: string) : void
Student
- listedCourses : vector<string>
- grades : vector<int>
- MAX_NR_COURSES : const int = 30
+ Student(name : string, specialization : string)
+ addCourseGrade(course : string, grade : int) :bool
+ printGrade():void
+ averageGrades():double
+ operator<<(o:ostream&, s : const Student&):ostream&
Professor
- listedCourses : vector<string>
- MAX_NR_COURSES : const int = 5
+ Professor(name : string, specialization : string)
+ addCourse ( course : string) :bool
+ eraseCourse ( course : string) : bool
+ operator<<(o:ostream&, p : const Professor&):ostream&
1 2 3 4 5 6 7 8 9 10 11 12
|
class Person
{
public:
Person(string Name, string Affiliation );
string getName();
string getAffiliation ();
void setNume(string Affiliation );
protected :
string Name;
string Affiliation ;
};
|
i hope at least this class i wrote it good