Views: 2.6K
Replies: 0
Archived
|
Virtual + Template Method pattern: brilliant solution neededI have the same implementation for 2 methods, they both insert argument to a text file.
The implementation is same, therefore I merge them to a template method:
But the WriteToFile() method should be virtual.Is there a design-pattern expert's trick to deal with it? Dev T K, Sep 09, 2014
|