Skip to content

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.

More on Object-oriented programming

Flashcards for this topic