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 many types of exception can occur in a java program?
What is a method declaration?
What is the difference between delete and delete[]
Is array primitive data type in java?
Explain the protected field modifier?
What is the maximum size of array in java?
What are the types of strings?
What is broken and continue statement?
What are "methods" and "fields"?
What is treemap in java?
Enlist few advantages of inheritance?
What are autoboxing and unboxing? When does it occur?
What is application system?
What is the difference between jdk and jre?
What about main() method in java ?