|
|
|
|
|
by bedobi
519 days ago
|
|
I see no need for inheritance there, that can and should be done using interfaces eg in the contrived example I gave, any of all three of the User, Student and Employee can implement the interface (and if needed Student could simply delegate to its internal User while Employee could "override" by providing its own, different implementation) |
|
I'm asking beyond the arbitrary distinctions that some languages like Java or C# bake in.