Original Post
Hello!
I have a template class:
if i compile this, i get an linker error for create().
if i use
instead, the create from dynamic is called and not from triangle.
Please help me, i cant cope with that.
I have a template class:
template<class TYPE>
class Dynamic
{
public:
Dynamic(){ Create(); };
virtual void Create() = 0;
};
class Triangle : public Dynamic<int>
{
public:
virtual void Create()
{
//do something
};
};
if i compile this, i get an linker error for create().
if i use
virtual void Create(){}; //in dynamic
instead, the create from dynamic is called and not from triangle.
Please help me, i cant cope with that.