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