Intermediate
Object-Oriented Programming Concepts
Q80 / 100
What is a common reason to use the "Template Method" design pattern?
Correct! Well done.
Incorrect.
The correct answer is A) To define the skeleton of an algorithm in a base class while letting subclasses override specific steps
A
Correct Answer
To define the skeleton of an algorithm in a base class while letting subclasses override specific steps
Explanation
Template Method fixes the overall structure of an algorithm in the parent while deferring certain customizable steps to subclasses via overridable methods.
Progress
80/100