Exemplo n.º 1
0
            static void Main()
            {
                aPoint   aPt  = new aPoint(0, 0, 0);
                aRectang aRct = new aRectang(1, 2);
                aCircle  aCir = new aCircle(2.1);

                Console.WriteLine("Test start: ");

                aPt.display();
                aPt.getArea(aPt);
                aRct.getArea(aRct);
                aCir.getArea(aCir);
            }
Exemplo n.º 2
0
            static void Main()
            {
                aPoint aPt = new aPoint(0,0,0);
                aRectang aRct = new aRectang(1,2);
                aCircle aCir = new aCircle(2.1);
                Console.WriteLine("Test start: ");

                aPt.display();
                aPt.getArea(aPt);
                aRct.getArea(aRct);
                aCir.getArea(aCir);
            }
Exemplo n.º 3
0
 public void getArea(aPoint aB)
 {
     aB.display();
     Console.WriteLine(Area);
 }
Exemplo n.º 4
0
 public void getArea(aPoint aB)
 {
     aB.display();
     Console.WriteLine(Area);
 }