Add template method example

This commit is contained in:
Petrutiu Mihai
2016-07-06 09:38:55 +03:00
parent a8aa2a5a18
commit 161e6b7c03
12 changed files with 217 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TemplatePattern.WorkersExample
{
public class Manager : Worker
{
protected override void GoToWork()
{
Console.WriteLine("Get an expensive car, and go to work");
}
protected override void Work()
{
Console.WriteLine("Convince other people to work");
}
}
}