-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (19 loc) · 904 Bytes
/
Copy pathMain.java
File metadata and controls
25 lines (19 loc) · 904 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
package com.mftplus.Tamrin.OfficeUml;
public class Main {
public static void main(String[] args) {
Organisation org = new Organisation("MFT");
Department dept = new Department("ItDepartment", org);
Department dept2 = new Department("HrDepartment", org);
// اصلاح این خط: گیرنده را عضو دپارتمان IT کن
Employee sender = new Employee("Shayan", dept2);
Employee receiver = new Employee("Aminaei", dept); // تغییر اینجا
Letter letter = new Letter("Official", sender, receiver);
LetterFlow flow = new LetterFlow();
flow.send(letter);
flow.reciever(letter);
System.out.println("So: ");
System.out.println("\t"+sender.getName()+" is sender.");
System.out.println("\t"+receiver.getName()+" is receiver."+"\n");
System.out.println("End....");
}
}