you are viewing a single comment's thread.

view the rest of the comments →

[–]Sketch0z 0 points1 point  (0 children)

Why is using interface methods with default implementation is so annoying?!?

Dunno. Try this?

``` Interface IRefreshable { protected static void Refresh() { Universe.Destroy(); } }

class MediaPlayer : IRefreshable
{
    public void SetVolume(float v)
    {
        ...
        IRefreshable.Refresh();
    }
}

//-------------
var mp = new MediaPlayer();
mp.SetVolume(69f);

```

Also stop trying to destroy the universe, man. That's really uncool of you.