static void Main(string[] args) { Case1(); Case2(); Case3(); Case4(); try { Infant i = (Infant) new Man(); i.Plays(); } catch (InvalidCastException ex) { Console.WriteLine(ex.Message); } Console.ReadLine(); }