-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBusiness.java
More file actions
44 lines (34 loc) · 825 Bytes
/
Business.java
File metadata and controls
44 lines (34 loc) · 825 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
44
/**
*
* @author kjust
*/
public class Business {
private double money = 100.00;
private int productCount = 10;
private final String name;
private double price = 5.00;
public Business(String busName){
name = busName;
}
public double getMoney(){
return money;
}
public void setMoney(double change){
money = money + change;
}
public int getProd(){
return productCount;
}
public void setProd(int change){
productCount = productCount + change;
}
public String getName(){
return name;
}
public double getPrice(){
return price;
}
public void setPrice(double change){
price = price + change;
}
}