Created
August 12, 2020 15:50
-
-
Save nanwang2016/3c83157fc78a4a2f16b7448b6f878cba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace TestFile | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
} | |
} | |
class Animal | |
{ | |
public void Eat() | |
{ | |
} | |
public void Drink() | |
{ | |
} | |
public void Breed() | |
{ | |
} | |
} | |
class Chicken: Animal | |
{ | |
public void Cluck() | |
{ | |
} | |
public void LayEgg() | |
{ | |
} | |
} | |
class Cow: Animal | |
{ | |
public void Moo() | |
{ | |
} | |
public void SupplyMilk() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment