Amazon Interview Question
Software Engineer / DevelopersCountry: United States
Interview Type: Written Test
Transactio should be a very big class with details of each purchase. Think about a situation where company wants to print details of all transaction, details of all transactions for one customer. It'll use map for all transactions and multimap for per person transaction because a person can do multiple transactions. Only transaction class (and Purchase class in bigger scenario) should interact with product and Services class.
- SK January 26, 2014