Question: ex2 Implement the following UML diagram. - numStudents: int//total number of students - name: String/ame of school + School (name: String) + getName (): String
ex2
Implement the following UML diagram. - numStudents: int//total number of students - name: String/ame of school + School (name: String) + getName (): String + setName (n: String): void getNumStudents (): int + setNumStudents (n: int): void + toString (): String - principalName: String/ame of high school's principal - numTeachers: int/umber of teachers + HighSchool (name: String, numS: int, p: String, numT: int) + getPrincipal (): String + setPrincipal (p: String): void + getNumTeachers (): int + setNumTeachers (nt: int): void + calculateRatio (): double//ratio of teachers: students + toString (): String
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
