Question: 55. (2pts) Implement the Tollable interface. It provides one method, pay,that accepts an int (how many dollars to pay), and returns an int (how much

55. (2pts) Implement the Tollable interface. It provides one method, pay,that accepts an int (how many dollars to pay), and returns an int (how much is paid). biC Interface Toiaole Public abstyacint pau 66. (Spts) Implement the driver class.It has a name (String) and a wallet-balance (int), an d a constructor assigning each from args. implements the Tollable interface by either removing the returning the amount amount requested quantity from the wallet (and paid), or throwing a RuntimeException when the driver is unable to pay that
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
