Function is not implemented.

Agustin agustin.l.alvarez at hotmail.com
Tue Nov 26 09:32:13 PST 2013


I'm trying to move from Java to D, and i have some like this:

interface A
{
   public bool isCancelled();
   public void setCancelled(bool value);
}

class B
{
   public bool isCancelled();
   protected void setCancelled(bool value);
}

But when i do

class C : B, A
{}

I get

Engine/Main.d(6): Error: class Main.C interface function 'bool 
isCancelled()' is not implemented
Engine/Main.d(6): Error: class Main.C interface function 'void 
setCancelled(bool value)' is not implemented


More information about the Digitalmars-d-learn mailing list