|
@@ -35,7 +35,7 @@ public class TicketMachine
|
35
|
35
|
*/
|
36
|
36
|
|
37
|
37
|
|
38
|
|
- public TicketMachine(int newPrice)
|
|
38
|
+ //public TicketMachine(int newPrice)
|
39
|
39
|
|
40
|
40
|
|
41
|
41
|
public TicketMachine()
|
|
@@ -45,12 +45,13 @@ public class TicketMachine
|
45
|
45
|
total = 0;
|
46
|
46
|
budget = 1000;
|
47
|
47
|
}
|
48
|
|
- public void emptry(int total)
|
|
48
|
+ public void emptry()
|
49
|
49
|
{
|
50
|
50
|
total = 0;
|
51
|
51
|
}
|
52
|
|
- public void setPrice(int price){
|
|
52
|
+ public int setPrice(int price){
|
53
|
53
|
price = getPrice();
|
|
54
|
+ return price;
|
54
|
55
|
}
|
55
|
56
|
public void prompt(){
|
56
|
57
|
|