This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Stanislav_Mykhailenko/Lesson_4/Task_2/Program.cs

14 lines
292 B
C#
Raw Normal View History

2023-04-10 15:31:36 +00:00
using Open_Closed.Classes;
2023-04-13 15:16:26 +00:00
List<MagicType> magicTypes = new List<MagicType>()
{
new MagicType("Fire Magic", 150),
new MagicType("Water Magic", 50000000)
};
Magic magic = new Magic(magicTypes);
magic.CountYourMagic(150);
magic.CountYourMagic(50000000);
magic.CountYourMagic(12345);