Composition.
Conversation
1
1
1
Thx for your insight. So in my GIST (updated) the best approach is solution 3 right? to still keep encapsulation
1
So my solution 2… doesn't it bother you that it exposes the inheritance and you need to use car.vehicle.model then?
1
I get it, but it feels like exposing implementation details somehow… sometimes it's OK for model structs but still…
1
Replying to
Replying to
True dat. That's actually how I already did it so far, but you convinced me to keep it that way then :)


