Answer Posted / naresh tuhania
Intent
Define the skeleton of an algorithm in an operation,
deferring some steps to
subclasses. Template Method lets subclasses redefine certain
steps of an
algorithm without changing the algorithm's structure.
Motivation
Sometimes you want to specify the order of operations that a
method uses,
but allow subclasses to provide their own implementations of
some of these
operations
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Where is core java used?
How are variables stored?
What are the default and parameterized constructors?
What do you understand by abstract classes?
What ide should I use for java?
Explain about varargs in java?
What is java english?
What is hash code collision?
What is fundamental datatype?
Is singleton a bad practice?
What do you mean by compiler?
Why hashset is used in java?
What is skeleton and stub? What is the purpose of those?
Which is better list or arraylist in java?
What are constants and how to create constants in java?