Weiterer Klassenentwurf
// File: GeoObj.h // ... class AbstractFactory; class GeoObj { public: GeoObj(AbstractFactory* _pFactory = NULL) : pFactory(_pFactory){} // ... virtual GeoObj* Clone() const = 0; // ... }; #endif