-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path37_Bed.java
More file actions
40 lines (32 loc) · 819 Bytes
/
Copy path37_Bed.java
File metadata and controls
40 lines (32 loc) · 819 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
public class Bed {
private String style;
private int pillows;
private int height;
private int sheets;
private int quilt;
public Bed(String style, int pillows, int height, int sheets, int quilt) {
this.style = style;
this.pillows = pillows;
this.height = height;
this.sheets = sheets;
this.quilt = quilt;
}
public void make() {
System.out.println("Bed -> Making | ");
}
public String getStyle() {
return this.style;
}
public int getPillows() {
return this.pillows;
}
public int getHeight() {
return this.height;
}
public int getSheets() {
return this.sheets;
}
public int getQuilt() {
return this.quilt;
}
}