Kinaxis interview question

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