class Organism
{
public string name;
public int age;
public Organism() { }
public Organism(string name,int age)
{
this.name = name;
this.age = age;
}
public void Display()
{
Console.WriteLine("My name is {0}", this.name);
Console.WriteLine("I am {0} years old", this.age);
}
~Organism()
{
}
}
public class Animals : Organism
{
private int Height, Weight;
string Sex;
public Animals()
{
Height = 0;
Weight = 0;
}
public Animals(string name, int age) : base(name, age) { }
public Animals(int Height, int Weight,string Sex)
{
this.Height = Height;
this.Weight = Weight;
this.Sex = Sex;
}
public void Move()
{
Console.WriteLine("I can move");
}
public void Mydisplay()
{
Console.WriteLine("My height is {0};\r\nMy weight is {1}\r\nI am a {2} ",this.Height,this.Weight,this.Sex);
}
}