Problem of override

Frank Benoit keinfarbton at googlemail.com
Sat Sep 29 06:26:17 PDT 2007


Does this help?

Eric Suen schrieb:
> 
> class A {
>   public char[] test() {
>     return "A";
>   }
> }
> 
> class B : A {
    alias A.test test;
>   public void test(char[] a) {
>   }
> }
> 
> class C : B {
>   public char[] test() {
>     return super.test() ~ " C";
>   }
> } 


More information about the Digitalmars-d-learn mailing list