Adding assignments
This commit is contained in:
15
Animals/Lion.cs
Normal file
15
Animals/Lion.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace OOP.Animals
|
||||
{
|
||||
public class Lion : Animal
|
||||
{
|
||||
public Lion()
|
||||
{
|
||||
this.Name = this.GetType().Name;
|
||||
}
|
||||
|
||||
public override void MakeSound()
|
||||
{
|
||||
Console.WriteLine("Rawr");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user