HardScenarioObject-oriented programming
Design the classes for a parking lot. What objects and relationships would you define?
This answer is part of Pro
14 of 303 CS fundamentals for freshers answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousA subclass overrides a method and the parent constructor calls that method. What can go wrong?Next You have an if-else chain on type that keeps growing every release. How would you refactor?