
What is the need for Template Method Pattern in C# (C Sharp)?Most of you
might have already implemented this template method pattern in your program
unknowingly. Have you used inheritance in your program with an intension
that one or more methods of the base class have to be implemented by its
derived class? Then you have used template method pattern. abstract
class baseClass { In this example,
templateMethod is implemented by baseClass but the method abstractMethod1
is not implemented by baseClass. It is expected to be implemented by the
derived class of baseClass. That is where template method pattern is utilized.
_______________________________________________________________________
FREE
Subscription
Subscribe
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________ |