-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
34 lines (23 loc) · 992 Bytes
/
Copy pathMain.java
File metadata and controls
34 lines (23 loc) · 992 Bytes
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
31
32
33
34
package com.company;
public class Main {
public static void main(String[] args) {
Student student1 = new Student();
student1.setId(1111);
student1.setName("fatih");
student1.setLastName("şeker");
student1.setBranch("10-L");
Student student2 = new Student(2222,"emir","şeker","9-A");
Instructor instructor1=new Instructor();
instructor1.setId(123456);
instructor1.setName("Engin");
instructor1.setLastName("Demirok");
instructor1.setDepartment("Math");
Instructor instructor2=new Instructor(987654,"Ahmet Tekin", "Hatun","Hayat Bilgisi");
StudentManager studentManager=new StudentManager();
InstructorManager instructorManager=new InstructorManager();
studentManager.add(student1);
studentManager.delete(student2);
instructorManager.add(instructor1);
instructorManager.delete(instructor2);
}
}