Amazon Interview Question for Software Engineer / Developers

Country: United States
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
of 1 vote

There can be a DVD abstract class,a customer class and Bill class
Under DVD Abstract class we can have a number of concrete classes like Fiction,Horror,Romance, Thriller(I am assuming movies in this case).
The customer has one to many relationship with DVD.As one customer can buy many DVD's
Under Bill class we have a list of DVd,totalAmount,Customer details,return Date and Buy Date

class Bill
Customer customer
Date returnDate
Date BuyDate

class Customer
phone number

abstract class DVD

Then concrete classes like Fiction,Horror ,Romance and so on
class Fiction
implements cost method-which will be specific to each class

In the Database we can have two tables called DVD and Customer.Customer will have a foreign key which will point to primary key of DVD(which is DVD number).There will be one to many relationship between Customer and DVD.

- Anonymous November 07, 2012 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More