-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPeriodicals.java
More file actions
36 lines (27 loc) · 1.1 KB
/
Copy pathPeriodicals.java
File metadata and controls
36 lines (27 loc) · 1.1 KB
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
package Java4;
public class Periodicals extends Java4.Literature {
private String typePeriodicals;
private String periodPublishing;
public Periodicals(int code, String type, String name, int year, String namePublic, int numberPages, String writer, String typePeriodicals, String periodPublishing) {
super(code, type, name, year, namePublic, numberPages, writer);
this.typePeriodicals = typePeriodicals;
this.periodPublishing = periodPublishing;
}
public String getTypePeriodicals() {
return typePeriodicals;
}
public void setTypePeriodicals(String typePeriodicals) {
this.typePeriodicals = typePeriodicals;
}
public String getPeriodPublishing() {
return periodPublishing;
}
public void setPeriodPublishing(String periodPublishing) {
this.periodPublishing = periodPublishing;
}
public String toString() {
return "\n" + super.toString() +
"\nPeriodicals type: " + typePeriodicals +
"\nPeriod of publishing: " + periodPublishing;
}
}