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

22 lines
456 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-15 20:25:41 +00:00
abstract public class Magic : IMagic
2023-04-09 18:00:28 +00:00
{
2023-04-15 20:25:41 +00:00
abstract public int MagicValue { get; }
abstract public string MagicType { get; }
public void CountYourMagic()
2023-04-09 18:00:28 +00:00
{
2023-04-15 19:39:32 +00:00
Console.WriteLine($"Your magic is {MagicType}.");
2023-04-09 18:00:28 +00:00
}
}
}