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
What is the class in java?
Differentiate between vector and array list.
Write a program to reverse a number in java?
How can you set an applet’s height and width as a percentage?
What is meant by main method?
What are loops in java? What are three types of loops?
What data type is a string?
What is locale in java?
Can one thread block the other thread?
Explain how hashmap works?
What happens if an exception is throws from an object's constructor?
How to create packages in java?
What is anonymous inner class?
What is null data type?
Is array serializable java?