MathWorks interview question

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