static void Main(string[] args) { Console.OutputEncoding = Encoding.Unicode; NumberInput number = new NumberInput(); SubscriberA subA = new SubscriberA(); SubscriberB subB = new SubscriberB(); subA.Subscriber(number); subB.Subscriber(number); number.InputNumber(); }
public void Subscriber(NumberInput numberInput) { numberInput.InputEvent += Square; }