what is tempplate pattern

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


Please Help Members By Posting Answers For Below Questions

how can you catch multiple exceptions in java?

541


What does escaping a character mean?

528


What is the use of http-tunneling in rmi?

544


What is immutable in java?

537


What are scalar data types?

520






What is return in java?

552


Can we overload the methods by making them static?

498


What is type inference in java8?

573


What is a priority queue java?

517


Why string is a class?

542


What is a type parameter in java?

526


What are disadvantages of java?

512


Can we call virtual funciton in a constructor ?

1770


Why strings in java are called as immutable?

589


Why synchronization is important in java?

558