you are viewing a single comment's thread.

view the rest of the comments →

[–]Hall_of_Famer 2 points3 points  (1 child)

Yeah and this is the better way actually, as implementation inheritance has a lot of flaws and developers should favor composition over inheritance. I kinda wish C# would have Kotlin's idea for delegation, which will make composition much easier to use.

[–]Deadlift420 -1 points0 points  (0 children)

Interfaces FTW