2 ms·
You can define iHittable and get the code to compile, but it doesn't make the actual issue (polymorphism) any easier to tackle. I think eschewing inheritance in
by fenomas 8y ago
You can define iHittable and get the code to compile, but it doesn't make the actual issue (polymorphism) any easier to tackle. I think eschewing inheritance in favor of aspects is definitely the way to go.
(Of course, you can wrap everything in a fluent-style interface either way - that part is orthogonal to all the rest.)