// draw any GeoObj void myDraw (GeoObj const& obj) { obj.draw(); // call draw() according to type of object }
// beliebiges geometrisches Objekt zeichnen void zeichne (const GeoObj& obj) { obj.draw(); }