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/Classes/Magic.cs

19 lines
358 B
C#
Raw Normal View History

2023-04-09 18:00:28 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-04-10 15:31:36 +00:00
using Open_Closed.Interfaces;
namespace Open_Closed.Classes
2023-04-09 18:00:28 +00:00
{
2023-04-11 15:40:32 +00:00
public class Magic
2023-04-09 18:00:28 +00:00
{
2023-04-11 15:40:32 +00:00
public void CountYourMagic(IMagic Magic)
2023-04-09 18:00:28 +00:00
{
2023-04-11 15:40:32 +00:00
Console.WriteLine($"Your magic is {Magic.MagicType}.");
2023-04-09 18:00:28 +00:00
}
}
}