-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchoolManagementSystem.java
More file actions
30 lines (23 loc) · 1.17 KB
/
Copy pathSchoolManagementSystem.java
File metadata and controls
30 lines (23 loc) · 1.17 KB
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
public class SchoolManagementSystem {
public static void main(String[] args) {
Principal principal = new Principal("Dr. Sajjad Hussain ", 60, 35);
School school = new School("United education school", "defence road lahore", principal);
Teacher teacher1 = new Teacher("Mr. Sumar", 40, "Mathematics", 101);
Teacher teacher2 = new Teacher("Ms. ayeesha", 35, "Science", 102);
Classroom class1 = new Classroom("Grade 10", "G10", teacher1);
Classroom class2 = new Classroom("Grade 11", "G11", teacher2);
school.addClassroom(class1);
school.addClassroom(class2);
Student student1 = new Student("Ghulam", 15, 109);
Student student2 = new Student("Hussain", 16, 34);
Student student3 = new Student("Akram", 15, 12);
Student student4 = new Student("Hamza", 16, 04);
Student student5 = new Student("Nadeem", 15, 07);
class1.addStudent(student1);
class1.addStudent(student2);
class1.addStudent(student3);
class1.addStudent(student4);
class1.addStudent(student5);
System.out.println(school);
}
}