static void Main(string[] args) { Console.WriteLine("Информация о собаке"); Console.WriteLine("======================================"); Dog dg1 = new Dog(); dg1.Input(); Console.WriteLine(); Console.WriteLine("Информация о собаке"); Console.WriteLine("======================================"); dg1.Print(); Console.ReadKey(); }
static void Main(string[] args) { Hero hero = new Hero(); Dog dog = new Dog(); Ghost ghost = new Ghost(); House house = new House(); Sun sun = new Sun(); List <IPrintable> printList = new List <IPrintable>(); List <IRenderable> allRenderables = new List <IRenderable>(); Dog dog1 = new Dog(7, "black"); dog1.Print(); }