1. Write Student class such as:
Student(id:int, n:string, dep:string, level:int) is the class constructor aiming at instantiate the class Student with the specified arguments
ToString()printthestudentinformation. 2. Write Section class such as:
Each section can contain 25 students.
Section(id: string, name:string) is constructor of the class and aims to instantiate the
class Section.
addStudent(s: Student) aims to add a student in a section and display the message
"student has been added successfully”, otherwise, it displays "The section is full".
3. Add the Main method to instantiate and test the application:
Create2 Student objects
- Id: 436001345 name =”Aya Muhammed” department =CS level=5 - Id: 43600456 name =”Rawan Ahmed” department =CS level=4
Add a section object with id =20728 and name= “5C1”:
please help i have quiz
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
17 October 2019, 20:12
hope you pass!
0