S
Squeamizh
Hi,
I'm having an issue where my compiler is not letting me do something
that I think I should be able to do. I'm finding it very difficult to
express my problem with a description, so I'm just going to give an
example of something similar to what I'm doing...I hope it's
understandable. Here's the situation:
class Alpha {
public:
virtual void translate(void) = 0;
...
};
class Beta : public Alpha {
public:
void translate(void);
...
};
class TranslatableInterface {
public:
virtual void translate(void) = 0;
};
class Gamma : public Beta, public TranslatableInterface {
... //translate is not overridden here.
};
But if I try to instantiate a Gamma object it tells me that Gamma is
an abstract class due its reference to the undefined virtual
translate function. Do I really have to create another translate
function within Gamma that just calls Beta::translate() ? God I hope
not, that would be annoying.
Thank you very much
I'm having an issue where my compiler is not letting me do something
that I think I should be able to do. I'm finding it very difficult to
express my problem with a description, so I'm just going to give an
example of something similar to what I'm doing...I hope it's
understandable. Here's the situation:
class Alpha {
public:
virtual void translate(void) = 0;
...
};
class Beta : public Alpha {
public:
void translate(void);
...
};
class TranslatableInterface {
public:
virtual void translate(void) = 0;
};
class Gamma : public Beta, public TranslatableInterface {
... //translate is not overridden here.
};
But if I try to instantiate a Gamma object it tells me that Gamma is
an abstract class due its reference to the undefined virtual
translate function. Do I really have to create another translate
function within Gamma that just calls Beta::translate() ? God I hope
not, that would be annoying.
Thank you very much