-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChurch.java
More file actions
30 lines (22 loc) · 765 Bytes
/
Church.java
File metadata and controls
30 lines (22 loc) · 765 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
package model;
import interfaces.Visitable;
import java.util.Set;
public class Church extends LocationWithBusinessHours {
/**
* model.Church constructor method
*
* @param longitude the longitude at witch the church is located
* @param latitude the latitude at witch the church is located
* @param name the name of the church
*/
public Church(String longitude, String latitude, String name) {
super(longitude, latitude, name);
}
public Church(String longitude, String latitude, String name, Set<OpeningTimes> openingTimes) {
super(longitude, latitude, name, openingTimes);
}
@Override
public String toString() {
return "Church{}" + getOpeningTimes().toString();
}
}