return weight / (height * height);
public virtual int GetLegsCount ()
public static float GetBMI (Human m)
public class Lost1Leg : Human
public override int GetLegsCount ()
public class Children : Human
public override string ToString ()
public class Student : Children
public static void Print (Human x)
Console.WriteLine("Legs: " + x.GetLegsCount());
Console.WriteLine("BMI:" + Human.GetBMI(x));
public static void Main ()
Children z = new Children();
Student y = new Student();
Lost1Leg l = new Lost1Leg();