Skip to content

Instantly share code, notes, and snippets.

@nanwang2016
Created August 12, 2020 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanwang2016/3c83157fc78a4a2f16b7448b6f878cba to your computer and use it in GitHub Desktop.
Save nanwang2016/3c83157fc78a4a2f16b7448b6f878cba to your computer and use it in GitHub Desktop.
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