M
Mark
Hi,
I have an abstract class which I want my other classes to inherit
from. In the constructor of the abstract class I want to check if
certain virtual functions have been overloaded or not. Is this
possible?
For example, let's say I have
class Base {
public:
virtual void display();
};
class Parent: public: Base {
public:
void display()
}
Then what I want to do is this:
Base::Base() {
if(Parent class has defined display) {
// do something
} else {
// do something else
}
}
I have an abstract class which I want my other classes to inherit
from. In the constructor of the abstract class I want to check if
certain virtual functions have been overloaded or not. Is this
possible?
For example, let's say I have
class Base {
public:
virtual void display();
};
class Parent: public: Base {
public:
void display()
}
Then what I want to do is this:
Base::Base() {
if(Parent class has defined display) {
// do something
} else {
// do something else
}
}