MathWorks Interview Question

Describe how you would use OOP to program a vending machine interface.