[Solved] C++: Abstract classes inheritance and construction
Because you are passing the classes by const reference, I assume you want to copy them. For that you will need additional virtual member function clone which will return a pointer to a dynamically allocated copy of the object. class func { … virtual func* clone() const; … }; class polynom: public func { … … Read more