Initial commit

This commit is contained in:
Mark J Price 2022-09-17 14:09:41 +01:00
parent 7a4066f965
commit bf63cf7d4b
6 changed files with 212 additions and 110 deletions

View file

@ -0,0 +1,16 @@
class Animal // This is the base type for all animals.
{
public string? Name;
public DateTime Born;
public byte Legs;
}
class Cat : Animal // This is a subtype of animal.
{
public bool IsDomestic;
}
class Spider : Animal // This is another subtype of animal.
{
public bool IsPoisonous;
}