On 2013-11-14 23:17, Oleg B wrote:

Oh sorry i mean

interface A {
  void funcA();
}

class B : A {
  final void funcA() { writeln( "B.funcA()" ); }
}

class C : B {
}

we can't change anything in class B

I would have moved "final void funcA()" to a template and mixin it in both B and C, but if you cannot change B that won't work.

--
/Jacob Carlborg

Reply via email to