-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShoe.java
76 lines (56 loc) · 1.08 KB
/
Shoe.java
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//Name: Shoe.java
//Date: November 18 2024
//Description: class for making shoes
//The Shoe class
public class Shoe{
//Variables
private String Brand;
private String Name;
private double Size;
private int Cost;
//Constructor
public Shoe(String brand, String name, double size, int cost) {
super();
Brand = brand;
Name = name;
Size = size;
Cost = cost;
}
//Brand getter
public String getBrand() {
return Brand;
}
//Brand setter
public void setBrand(String brand) {
Brand = brand;
}
//Name getter
public String getName() {
return Name;
}
//Name setter
public void setName(String name) {
Name = name;
}
//Size getter
public double getSize() {
return Size;
}
//Size setter
public void setSize(int size) {
Size = size;
}
//Cost getter
public int getCost() {
return Cost;
}
//Cost setter
public void setCost(int cost) {
Cost = cost;
}
//The toString method
@Override
public String toString() {
return "Shoe [Brand=" + Brand + ", Name=" + Name + ", Size=" + Size + ", Cost=" + Cost + "]";
}
}