Hi MJ,
I see you are still working.
v quick C++ question.
Can I declare a function in a baseclass to return an object of type
baseclass, and then redefine it in my derived classes to return objects
of the derived classes.
Concretely
class BaseMat
{
...
public:
virtual BaseMat VertConcat(const BaseMat& m) const = 0;
...
}
Class SparseMat
{
...
public
SparseMat VertConcat(const SparseMat& m);
...
}
Class FullMat
{
...
public:
FullMat VertConcat(const FullMat& m);
}
??
Puss J
|