-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
29 lines (21 loc) · 862 Bytes
/
Main.java
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
/**
* Created by henryhargreaves on 10/11/2015.
*/
public class Main {
public static void main (String[] args){
Employee employee1 = new Employee("Bill", "Janitor", "123", 100.0f);
Exhibition exhibition1 = new Exhibition("EXHIBITION-1");
Facility facility1 = new Facility("Cafe-1", "Restroom-1","CarPark-1", "Shop-1");
Museum museum1 = new Museum("Museum-1", "London", true, 100, 5.5f);
Item item1 = new Item(10.0f, "painting","PAINTING-1", museum1);
Item item2 = new Item(5.0f, "drawing","DRAWING-1", museum1);
item1.newCatalogueNo();
item2.newCatalogueNo();
museum1.addExhibition(exhibition1);
museum1.addEmployee(employee1);
museum1.addFacility(facility1);
item1.printDetails();
item2.printDetails();
museum1.printDetails();
}
}