2

Can an abstract class in an implementation of the Template Method pattern have more than one template method?

1 Answer 1

2

Yes. The Template Method design pattern is about allowing derived classes to implement parts of an algorithm for which the base class provides the basic structure.

The base class defines a template method for each portion of the algorithm that the derived classes would have to implement.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.