static void Main(string[] args) { Cat cat = new Cat("Маркиз"); MaineCoon mc = new MaineCoon("Чейз"); CovarianceGenericDel <MaineCoon> delMaineCoon = ShowMaineCoonInfo; delMaineCoon(mc); Console.WriteLine(new string('-', 15)); CovarianceGenericDel <Cat> delCat = ShowCatInfo; delMaineCoon = delCat; delMaineCoon(mc); Console.ReadKey(); }
private static void ShowMaineCoonInfo(MaineCoon mc) { mc.ShowInfo(); }