-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject .java
More file actions
43 lines (32 loc) · 782 Bytes
/
Project .java
File metadata and controls
43 lines (32 loc) · 782 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
41
42
43
public class Project {
private String name;
private String description;
private double initialCost = 0;
public String elevatorPitch() {
return name + " ($" + initialCost + ")" + " : " + description;
}
public Project() {
}
public Project(String name) {
}
public Project(String name, String description) {
}
public void setName(String name) {
this.name = name;
}
public void setDesc(String desc) {
this.description = desc;
}
public void setCost(double cost) {
this.initialCost = cost;
}
public String getName() {
return name;
}
public String getDesc() {
return description;
}
public double getCost() {
return initialCost;
}
}