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
how can you catch multiple exceptions in java?
What does escaping a character mean?
What is the use of http-tunneling in rmi?
What is immutable in java?
What are scalar data types?
What is return in java?
Can we overload the methods by making them static?
What is type inference in java8?
What is a priority queue java?
Why string is a class?
What is a type parameter in java?
What are disadvantages of java?
Can we call virtual funciton in a constructor ?
Why strings in java are called as immutable?
Why synchronization is important in java?