Design a vending machine like coffee vending machine
Broadly, think about what objects are involved in a vending machine: VendingMachine - possibly an abstract class DrinkMachine, SnackMachine, and classes extending VendingMachine VendingProduct - an abstract class? Drink, other classes extending VendingProduct Coke, other classes extending Drink &c, &c. But I’m sure you can figure that out pretty easily. The nuts and bolts of the machine will take place in some kind of utility class, with methods to accept bills and coins, calculate change, etc. ...