Original Post
Hi, I have the following classes
class Sound
{
protected :
int i;
public :
bool Load();
bool Play();
bool Close();
};
class Wave : public Sound
{
// stuff
};
class Mp3 : public Sound
{
// stuff
};
I tought with inheritance a could define
bool Wave::Load()
{
//code
}
bool Mp3::Load()
{
//code
}
But it says that Load is not declared in Wave or Mp3, with my small and new notions of inheritance I tought this was possible. Is it ? If so where is my erro and if not what would you suggest, creating a load and play for every derived class ?