Question: a. The section Id is always computed using the static attribute nbSections . b. The method addStudent() will return false if the section is full
a. The section Id is always computed using the static attribute nbSections.
b. The method addStudent() will return false if the section is full (nbStudents == MAX_SIZE)
Write the class secation In java programming
stu Section {Some Properties) -id: int -nb Students: int +academic Year: String -nb Sections: int -MAX SIZE: int +Section(academicY: String): int +getSectionld(); int +getNbStudents(): int +addStudent(Student in St): boolean +getStudent(index: int): Student +getStudent(inName: String): Student +aet Studentlind. Strinal. Student +getStudentsByHours(in CompletedHours): Student[ +getStudentAbove Gpa(inGPA: double): Student +getStudentBelowGpain GPA: double): Student[] +remove Student(index: int): boolean sections 1 students
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
