-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchoolFootballClub.java
More file actions
38 lines (28 loc) · 861 Bytes
/
Copy pathSchoolFootballClub.java
File metadata and controls
38 lines (28 loc) · 861 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
import java.io.Serializable;
public class SchoolFootballClub extends FootballClub implements Serializable {
private static final int ageLimit = 18;
private String schoolName;
/*default constructor*/
public SchoolFootballClub(){
super();
this.schoolName = null;
}
public SchoolFootballClub(String schoolName, String clubName, Address clubLocation){
super( clubName, clubLocation);
this.schoolName = schoolName;
}
public String getSchoolName(){
return this.schoolName;
}
public void setSchoolName(String schoolName){
this.schoolName = schoolName;
}
public static int getAgeLimit(){
return ageLimit;
}
@Override
public String toString(){
return super.toString()
+"School Name: "+this.getSchoolName()+"\n";
}
}