Vista interview question

How do you design a Restaurant Robot using object oriented programming? Design appropriate class and state diagram.

Interview Answers

Anonymous

27 July 2018

I drew few class with inheritance and model objects. explained it and that's pretty much it.

Anonymous

3 July 2021

I think 3 design patterns will be used: 1. Observer: Robot subscribes to user's commands, also when meal is ready. 2. Factory Method: Robot provides separate interface to user, and prepares meal with help of separate class at backend. 3. Command: Takes command to edit menu. Add item, remove item et