Overloading 重载
这是一个打票机
import lang.stride.*;
public class TicketMachine
{
/* The price of a ticket from this machine.*/
private int price;
/* The amount of money entered by a customer so far.*/
private int balance;
/* The total amount of money collected by this machine.*/
private int total;
}
这是打票机的更改器