Skip to content
Learn Netverks
Company prep Adevinta
Mid-level (3–5 years) Technical deep dive Medium

Design a parking lot system using OOD principles

Reported in Adevinta European engineering loops. Object-oriented design classic testing modeling and extensibility.

Role
SDE II
Location
Remote (EU)

Context for Adevinta candidates:

Support multiple floors, spot types, tickets, and payment processing.

Try answering aloud first

Cover trade-offs, structure, and a concrete example before revealing the baseline response.

Spoiler-free prep mode

How to frame this at Adevinta: Connect your answer to measurable impact, clarity of thought, and trade-offs the team cares about. Below is a strong baseline response you can adapt with your own project examples.

Identify core entities first: ParkingLot, Floor, Spot, Vehicle, Ticket, and Payment. Model spot assignment rules through a strategy interface so policies can vary by vehicle type or peak hours.

Encapsulate state transitions clearly, such as ticket issued, occupied, paid, and exited. Keep responsibilities cohesive: availability management should not be mixed with billing logic.

Good interview answers include extensibility points like reservation support, electric charging spots, and admin reporting without rewriting core classes.

Comments (0)

Share how this question came up in your loop, or add tips for others preparing.

Log in to comment on this question.