From 859d83a6e0dd7c1f27b25a27b78cff30d8b25b97 Mon Sep 17 00:00:00 2001 From: Stanislav Mykhailenko Date: Sun, 16 Apr 2023 16:37:16 +0300 Subject: [PATCH] Update Lesson 4 Task 2 --- Lesson_4/Task_2/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lesson_4/Task_2/Program.cs b/Lesson_4/Task_2/Program.cs index 99982e5..d119c82 100644 --- a/Lesson_4/Task_2/Program.cs +++ b/Lesson_4/Task_2/Program.cs @@ -1,5 +1,8 @@ using Open_Closed.Classes; using Open_Closed.Interfaces; -((IMagic) new FireMagic()).CountYourMagic(); -((IMagic) new WaterMagic()).CountYourMagic(); +IMagic fireMagic = new FireMagic(); +IMagic waterMagic = new WaterMagic(); + +fireMagic.CountYourMagic(); +waterMagic.CountYourMagic();