Overstock.com Interview Question: Create a class diagram for th... | Glassdoor

Interview Question

Principal Software Engineer Interview Salt Lake City, UT

Create a class diagram for this situation: Pilot (fly

  plane, get drink, consume drink) Flight Attendant (get drink, consume drink, serve drink) Passenger (get drink, consume drink, ride plane) Now, add concept of "deadhead", which is a pilot or flight attendant riding as a passenger. Pilot or flight attendant can only be Pilot/Attendant or Deadhead mutually exclusively.

Interview Answer

1 Answer


Not sure the best answer, but you should think about it before it comes to you!

Interview Candidate on Aug 29, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.