COMP2396
Loading...
Searching...
No Matches
tutorial4.part3.q3.Main Class Reference

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Definition at line 3 of file Main.java.

Member Function Documentation

◆ main()

static void tutorial4.part3.q3.Main.main ( String[] args)
inlinestatic

Definition at line 4 of file Main.java.

4 {
5 Guest wing = new Guest("Wing");
6 Guest joy = new Guest("Joy");
7 Guest marco = new Guest("Marco");
8
9 Event bookFair = new Event("Book Fair");
10 bookFair.addVenue("Hall A");
11 bookFair.addVenue("Room 1");
12
13 wing.joinEvent(bookFair, "Hall A");
14 joy.joinEvent(bookFair, "Room 1");
15 marco.joinEvent(bookFair, "Room 1");
16
17 Event gunplaExpo = new Event("Gunpla Expo");
18 gunplaExpo.addVenue("Room 1");
19
20 wing.joinEvent(gunplaExpo, "Room 1");
21
22 System.out.println(wing.hasCloseContactWith(joy)); // output: false
23 System.out.println(wing.hasCloseContactWith(marco)); // output: false
24 System.out.println(joy.hasCloseContactWith(marco)); // output: true
25 }

References tutorial4.part3.q3.Event.addVenue(), tutorial4.part3.q3.Guest.hasCloseContactWith(), and tutorial4.part3.q3.Guest.joinEvent().

Here is the call graph for this function:

The documentation for this class was generated from the following file: