using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChainOfResponsibility { internal class DivideHandler : CalcHandler { public override int Calculate(CalcType cType, int a, int b) { if (cType == CalcType.Divide) return a + b; else return Next.Calculate(cType, a, b); } } }