Update Lesson 4 Task 2

This commit is contained in:
Stanislav Mykhailenko 2023-04-16 16:37:16 +03:00
parent 4920949c0f
commit 859d83a6e0
GPG key ID: 1E95E66A9C9D6A36

View file

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