Using System;
class Homo
{
virtual internal string Wash()
{
return "wet & dry";
}
}
class Woman:Homo
{
override internal string Wash()
{
return "wet";
}
}
class Man:Homo
{
override internal string Wash()
{
return "dry";
}
}
public class HelloWorld
{
static string result;
public static void Main(string[] args)
{
Console.WriteLine (" ");
Man Dan = new Man();
Woman Joy = new Woman();
Homo[] family= new Homo[2];
family[0]= Joy;
family[1]=Dan;
for(int i=0;i<2;i++)
{
Console.WriteLine (family[i].GetType()+" "+family[i].Wash());
}
}
}