extends and implements
Trass3r
un at known.com
Mon Nov 7 10:51:36 PST 2011
> You can do this and/or use the convention of extends first, implements
> second:
>
> class Rectangle : Drawable, IShape, IOtherInterface {}
It's not a convention, the spec demands that.
http://d-programming-language.org/class.html
> If you're really concerned about clarity, use comments:
>
> class Rectangle : /* extends */ Drawable,
> /* implements */ IShape
> {
> }
Good point.
More information about the Digitalmars-d-learn
mailing list