I saw that a similar question has already been asked here: Why use subtypes instead of traits and duck typing?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Voices of experience - abstract types as classes or interfaces? | 4 | 655 | January 21, 2020 | |
Is it ok to write interfaces that require field access on subtypes? | 6 | 522 | May 8, 2023 | |
Why use subtypes instead of traits and duck typing? | 32 | 4351 | April 15, 2021 | |
Struct as subtype of multiple types | 8 | 3619 | December 30, 2020 | |
Why is it impossible to subtype a struct? | 29 | 10921 | January 23, 2019 |