Help for this page

Select Code to Download


  1. or download this
    class Rect; bool intersect( Rect* ); bool intersect( Ellipse* ); bool 
    +intersect( Polygon* ); ...
    
  2. or download this
    #include <iostream>
    
    ...
      shape = new Circle();
      ShowType(shape);
    }
    
  3. or download this
    Shape
    Shape
    
  4. or download this
    void ShowType(Shape *obj)
    {
    ...
      else
       cout << "Shape" << endl;
    }
    
  5. or download this
    Polygon
    Circle