OO DESIGN · 6 Articles
Object-Oriented Design
6 articles on Object-Oriented Design. Search or filter by topic to start reading.
6 topics
- 01 OO DESIGN Design a deck of cards
Constraints and assumptions Is this a generic deck of cards for games like poker and black jack? Yes, design a generic deck then extend it to black jack Can we…
- 02 OO DESIGN Design a call center
Constraints and assumptions What levels of employees are in the call center? Operator, supervisor, director Can we assume operators always get the initial…
- 03 OO DESIGN Design a hash map
Constraints and assumptions For simplicity, are the keys integers only? Yes For collision resolution, can we use chaining? Yes Do we have to worry about load…
- 04 OO DESIGN Design an LRU cache
Constraints and assumptions What are we caching? We are cahing the results of web queries Can we assume inputs are valid or do we have to validate them? Assume…
- 05 OO DESIGN Design an online chat
Constraints and assumptions Assume we'll focus on the following workflows: Text conversations only Users Add a user Remove a user Update a user Add to a user's…
- 06 OO DESIGN Design a parking lot
Constraints and assumptions What types of vehicles should we support? Motorcycle, Car, Bus Does each vehicle type take up a different amount of parking spots?…