Error when implementing methods of abstract class inherited from interface in some second class

rumbu rumbu at rumbu.ro
Wed Oct 30 05:14:42 PDT 2013


On Wednesday, 30 October 2013 at 10:17:17 UTC, Uranuz wrote:
> This example may be tested here:
> http://dpaste.dzfl.pl/2ecdd48a

Since BaseTaskDoer *must* implement ITaskDoer, the correct
implementation is:

class BaseTaskDoer: ITaskDoer
{
	string doTask2(string someName)
	{	return "You have passed name: \"" ~ someName ~ "\"";
	}
	abstract int doTask1();
	abstract bool doTask3(bool value);
	
}


More information about the Digitalmars-d mailing list