abstract class AbstractClass public void TemplateMethod Operation1 Ope

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
abstract class AbstractClass
{
public void TemplateMethod()
{
Operation1();
Operation2();
}
public abstract void Operation1();
public abstract void Operation2();
}
class ConcreteClass : AbstractClass
{
public override void Operation1()
{
}
public override void Operation2()
{
}
}