I have a problem. I have an abstract class called Number and 3 derived classes called Integer,Double and Float. The Number class has an abstract virtual method, which the derived classes (obviously) must inherit. Now comes the part where im stuck. The method has to be declared using a template. Where do i have to declare this template? I tried in the number class, but in this case the method cannot be virtual it seems. Because of this, i also cannot declare it in the derived classes, because then it doesnt match the base-class method.
Any help would be much appriciated