interface problem
bearophile
bearophileHUGS at lycos.com
Sat Mar 6 05:27:05 PST 2010
Trass3r:
> I got 2 classes which both (indirectly) inherit from a common base class and implement a certain interface I.
When possible show an example. You can fill/fix the following code to create an example of your problem:
interface IFoo {
void foo();
}
class Base {
void foo() {}
}
class C1 : Base, IFoo {
void foo1() {}
}
class C2 : Base, IFoo {
void foo1() {}
}
void bar() {
}
void main() {
}
> Adding the function to the interface doesn't work. It doesn't recognize the inherited version and yields "not implemented"
This is a very new feature, so it can be a little buggy.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list