Re: [NF] C#: Single inheritance

Author: Wollenhaupt, Christof

Posted: 2017-05-18 at 02:17:15

>

> I could have swore somebody told me DotNet was MULTIPLE inheritance, where

> you could have multiple parents...which I thought was really great & cool!

Multiple inheritance of interfaces, but only one actual parent class...

class Class : Parent, Interface1, Interface2, Interface3 { }

I'd argue that there is a good reason not to support multiple inheritance

as that easily leads to violations of the Single Responsibility Principle.

--

Christof

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAL4QJhjkMeLNuODkXyeQo3CHF6-w=ZpNTuM8wZeWdbN_7ksi-g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2017 Wollenhaupt, Christof