HardScenarioObject-oriented programming
You have an if-else chain on type that keeps growing every release. How would you refactor?
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.
PreviousDesign the classes for a parking lot. What objects and relationships would you define?Next What is the SDLC and what are its phases?