Files
behavioral-patterns/src/TemplatePattern/WorkersExample/ConstructionWorker.cs
2016-07-14 12:29:01 +03:00

21 lines
512 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TemplatePattern.WorkersExample
{
public class ConstructionWorker : Worker
{
protected override void GoToWork()
{
Console.WriteLine("Buy some beers");
base.GoToWork();
}
protected override void Work()
{
Console.WriteLine("If nobody is around, just look around, if boss is around work a little bit");
}
}
}