Update Lesson 4 Task 2 to assign properties the way used before
This commit is contained in:
parent
505a63f5d4
commit
bc0c959d5e
2 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,6 @@ namespace Open_Closed.Classes
|
|||
{
|
||||
public class FireMagic : IMagic
|
||||
{
|
||||
public string MagicType { get { return "fire"; } }
|
||||
public string MagicType { get; } = "fire";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ namespace Open_Closed.Classes
|
|||
{
|
||||
public class WaterMagic : IMagic
|
||||
{
|
||||
public string MagicType { get { return "water"; } }
|
||||
public string MagicType { get; } = "water";
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue