static void Main(string[] args) { Shapes a = new Shapes(1, 2); Shapes b = new Rectangle(4, 5); Rectangle c = new Rectangle(7, 8); Shapes d = new Triangle(2, 3, 4); Shapes e = new Triangle(6, 7, 8); Console.WriteLine(a.PrintOut()); Console.WriteLine(b.PrintOut()); Console.WriteLine(c.PrintOut()); Console.WriteLine(d.PrintOut()); Console.WriteLine(e.PrintOut()); Console.WriteLine("\nPress any key to close..."); Console.ReadKey(); }