diff --git a/Lesson_4/Task_2/Classes/FireMagic.cs b/Lesson_4/Task_2/Classes/FireMagic.cs index d2d74ca..a27dec0 100644 --- a/Lesson_4/Task_2/Classes/FireMagic.cs +++ b/Lesson_4/Task_2/Classes/FireMagic.cs @@ -4,6 +4,6 @@ namespace Open_Closed.Classes { public class FireMagic : IMagic { - public string MagicType { get { return "fire"; } } + public string MagicType { get; } = "fire"; } } diff --git a/Lesson_4/Task_2/Classes/WaterMagic.cs b/Lesson_4/Task_2/Classes/WaterMagic.cs index 10a84a1..40a12dc 100644 --- a/Lesson_4/Task_2/Classes/WaterMagic.cs +++ b/Lesson_4/Task_2/Classes/WaterMagic.cs @@ -4,6 +4,6 @@ namespace Open_Closed.Classes { public class WaterMagic : IMagic { - public string MagicType { get { return "water"; } } + public string MagicType { get; } = "water"; } }