S
Sergey
Is it possible to realize such an algorithm (this one is not working):
class a1 {
public:
void af () { bf(); }
virtual void bf () = 0;
};
class b1 {
public:
virtual void bf () { }
};
class c1 : public a1, public b1 { };
main () {
c1 x;
}
The general idea is in that if you have one group of classes for one
option and another group of classes for another option you can combine
the general class by any class from the first group and by any class
from the second group. Question is how can functions of one group refer
to functions of another?
Thank you for answers.
Sergey
class a1 {
public:
void af () { bf(); }
virtual void bf () = 0;
};
class b1 {
public:
virtual void bf () { }
};
class c1 : public a1, public b1 { };
main () {
c1 x;
}
The general idea is in that if you have one group of classes for one
option and another group of classes for another option you can combine
the general class by any class from the first group and by any class
from the second group. Question is how can functions of one group refer
to functions of another?
Thank you for answers.
Sergey