mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-15 02:33:50 +08:00
20 lines
831 B
Markdown
20 lines
831 B
Markdown
---
|
|
id: oop
|
|
title: Object-oriented programming
|
|
toc_max_heading_level: 2
|
|
---
|
|
|
|
## Sample questions
|
|
|
|
- How would you design a chess game? What classes and objects would you use? What methods would they have?
|
|
- How would you design the data structures for a book keeping system for a library?
|
|
- Explain how you would design a HTTP server? Give examples of classes, methods, and interfaces. What are the challenges here?
|
|
- Discuss algorithms and data structures for a garbage collector?
|
|
- How would you implement an HR system to keep track of employee salaries and benefits?
|
|
- How would you implement an Elevator system?
|
|
- How would you implement a Parking Lot system?
|
|
|
|
## Recommended courses
|
|
|
|
- [Grokking the Object Oriented Design Interview](https://www.designgurus.io/course/grokking-the-object-oriented-design-interview?aff=kJSIoU)
|