Imagine a scenario where new child classes are introduced frequently from a basic class. The method calling sequences for every child class are the…
Imagine a scenario where new child classes are introduced frequently from a basic class. The method calling sequences for every child class are the same but the implementation is different among the child classes. Here which design pattern would you like to apply? Explain the reasons with examples to support your answer.
From the BPSC Assistant Engineer May 2022 – Written exam, question 16 of 16.