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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!