Update Lesson 4 Task 2
This commit is contained in:
parent
4920949c0f
commit
859d83a6e0
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue