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();