I'm just starting to use .NET for my programming chores. I am wondering what's the best way to implement a template method. To refresh the memory, a template method is a method that is defined in a superclass that delegates the implementation of certain key steps to derived classes.
What kind of compiler errors are you seeing? We use this pattern constantly with great success (protected abstract).
Probably I am totally misreading your post, but doesn't a template method call other methods on its container class? Then these methods are usually implemented as protected abstract (in C#), so subclasses must provide an implementation. The template method itself is usually public sealed/final (what's the modifier in C# again?).
Thank goodness for GoF! You see now we're all speaking the same language ;-)
Fog Creek Home