Kinaxis Interview Question

How do you design an OOP program to implement a vending machine