Example #1
0
        static void Main(string[] args)
        {
            Caller    caller    = new Caller();
            Rectangle rectangle = new Rectangle(5, 6);
            Triangle  triangle  = new Triangle(7, 8);
            int       recArea   = caller.GetArea(rectangle);

            Console.WriteLine(recArea);

            int triArea = caller.GetArea(triangle);

            Console.WriteLine(triArea);
            Console.ReadKey();
        }