mercredi 28 août 2019

Amazon Interview Question - OO Design - LLD

Given you have different types of Phones - WinPhone, AndroidPhone, iPhone, TouchscreenPhone, and KeyPhone. Add behavior to implement NoSim() which will put the phone in NONUSABLE state. Also add TouchScreenDamaged() behavior which will put the phone in NONUSABLE state. Help me design the object model and explain the object relationships.

Came up with this object relationship. Suggestions would be appreciated enter image description here

Aucun commentaire:

Enregistrer un commentaire