Object Oriented Design Interview Questions
- 0of 0 votes
AnswersDesign a Flight take-off control system
- seeksree May 24, 2011
There are two type of flights - Passenger and Cargo
Each type of flight can be SMALL or LARGE.
Problem is to design a take-off control system such that the following precedence is maintained.
1. Passenger > Cargo.
2. If both flights are same type then LARGE > SMALL
3. If both types and sizes are same then flight with longer GroundDuration(i.e ground stay time) has precedence over other flights.
The design and the implementation should be such that the take-off of all flights happen according to the above conditions.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersCreate an address book. Every entry in the book is a contact whose fields are First Name, Last Name, and Phone #. The collection of contacts are organized in alphabetical order of the first-name. How would you go about sorting this list of contacts? What kind of structure would you use to form your collection of contacts?
- Mike May 11, 2011| Report Duplicate | Flag | PURGE
Object Oriented Design - 0of 0 votes
AnswersQuestion asked on phone interview at Norvax.
- Abhijith May 10, 2011
Design the game of Blackjack/21. The pointers he gave me were that I needed a class for cards, deck, players(of which a specific one would be the dealer), a game, a way to keep aggregate scores.| Report Duplicate | Flag | PURGE
Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a jigsaw puzzle?
- simy May 09, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerImplement Cache management in Java.
- Anonymous April 29, 2011| Report Duplicate | Flag | PURGE
Symantec Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign OOP constructs for the following functinoarlity. There are multiple types of phones (android, iphone etc). Each phone has a subset of features (voice, text, etc). How would you write the classes and inheritance esp. in C++?
- April 15, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersAsked if I knew Poker. I said no, so then asked me to design deck of cards, Just the class and methods.He did not want the implementation of any method, just signatures and return types.
- troy March 08, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersThere is a Furniture class and has derived classes like WoodChair,WoodTable,SteelChair,SteelTable. She wants to add more number of classes like ironchair,irontable etc; How would you do that. The design is not yet published and you are free to modify the entire sutff given.
- CGB (3rd Telephone Interview) February 24, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersInheritance/Polymorphism - Definition
- amazon_guy February 11, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerDifference between overloading and overriding
- amazon_guy February 11, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhat is encapsulation?
- Jerry February 01, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhat is a virtual function? How does a virtual function work?
- Jerry February 01, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign ATM machine.
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Object Oriented Design - 0of 0 votes
AnswersImplement a deck of cards using OOPs
- Anonymous December 18, 2010| Report Duplicate | Flag | PURGE
One97 Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerDesign an elevator system, improvise it to multiple elevators with single button on each floor.
- Anshum Verma September 03, 2010| Report Duplicate | Flag | PURGE
Flipkart Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersYou have a class that many libraries depend on. Now you need to modify the class for one application. Which of the following changes require recompiling all libraries before it is safe to build the application?
- Anonymous July 31, 2010
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function| Report Duplicate | Flag | PURGE
Interactive Brokers C++ Object Oriented Design - 0of 0 votes
AnswersDesing parking lot
- AmazonPersonalRound July 30, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerDesign a DVD rental store. Class diagram.. issues around scalability.
- AmazonPersonalRound July 30, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswersDesign Coffee maker .. class diagram
- AmazonPersonalRound July 30, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswerDesign classes for Themes in UI. A Theme has a font, background colour, background image etc.
- someone June 28, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a Train & reservation system. Give class structure and design
- someone June 28, 2010
UML| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersGiven 5 classess Person, Head, Body, Arm, Leg, how will you relate all the 4 classes in a object oriented way?
- Anonymous June 08, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhats the difference between an interface and a abstract class?
- Anonymous June 08, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhat is polymorphism?
- Anonymous June 08, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerHandler-body idiom design.
- Xankar May 18, 2010
We chatted for an hour. I cracked most of it but I got too hacky while suggesting solutions. He said I was sneaky! :D But made him understand that I wanted to crack the questions first and then would go for a better design/implelementation.| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerProducer-Consumer template implementation, including minute details. Instead of including the While(Condition){ wait on a RW conditon}, I included the If(condition) like a dumbass :(
- Xankar May 18, 2010
But he was very good and understanding.| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Object Oriented Design