public class Coin{ public Coin(double aValue, String aName){ . . . } public double getValue(){ . . . } . . .}public class CashRegister{ public void enterPayment(int coinCount, Coin coinType) { . . . } . . .}