Template Method is an Object Oriented design pattern that let's a subclass implement particular steps of an algorithm defined in the superclass.
0
votes
1answer
90 views
Is this the template method pattern?
Could someone tell me whether the following is A) a good solution to the problem of repeating code and B) an example of the template method?
Let's say I have one table, named VEHICLES, which I use to ...
2
votes
0answers
103 views
Is this considered an implementation of the Template Method design pattern?
Please consider a StringBank class. This class holds a list of Strings and can return them to the client.
It's code (irrelevant stuff omitted):
abstract class StringBank{
List<String> ...