On 11/26/2013 09:52 AM, Agustin wrote:

Oh i forgot to add the implementation here, but its there, what i want
to do is with an interface be able to change "protected" to "public",
this is possible using Java but i don't know if possible using D.


class C : B, A -> setCancelled() is changed from protected to public
{
}



I don't know any other way than implementing in terms of B:

class C : B, A
{
    public override bool isCancelled()
    {
        return B.isCancelled();
    }

    protected override void setCancelled(bool value)
    {
        B.setCancelled(value);
    }
}

Ali

Reply via email to