I want to create a base class that tells people that there will be two methods but not specify what the args or return type are. How would I do this?
Code:
//Something along the lines of
template <typename T>
class Test
{
public:
T load(SomeClass a);
void save(SomeClass a, T b);
};
class DerivedA : public Test
{
public:
File load(SomeClass a);
void save(SomeClass a, File b);
};
class DerivedB : public Test
{
public:
Text load(SomeClass a);
void save(SomeClass a, Text b);
};
Is that valid? is there a better way?