-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowtime.java
More file actions
49 lines (36 loc) · 890 Bytes
/
Showtime.java
File metadata and controls
49 lines (36 loc) · 890 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
public class Showtime {
private int showtimeID;
private Movie movie;
private String time;
private String date;
private Location location;
public Showtime(int showtimeID, Movie movie, String date, String time, Location location){
this.showtimeID = showtimeID;
this.movie = movie;
this.time = time;
this.date = date;
this.location = location;
}
@Override
public String toString(){
return time;
}
//getters
public String getDate(){ return date;}
public int getShowtimeID() {
return showtimeID;
}
public Movie getMovie() {
return movie;
}
public String getTime() {
return time;
}
public Location getLocation() {
return location;
}
//setters
public void setMovie(Movie movie) {
this.movie = movie;
}
}