Youtube hearted comments of MrAbrazildo (@MrAbrazildo).
-
3
-
2
-
3:10, this is not true. I would make a banana, gorila and jungle as 3 different/independent classes. Banana would reuse its fruit base class, as well as gorila with its animal base.
3:20, I don't have been facing this case. I guess I would just make Developer inherit Designer, and call the last 1 FullStackWorker.
10:15, I don't know, it seems that this computes only that combination flow, not all paths. Does it cover if mario gets the feather right away, for instance? Anyway, I made a C++ version that covers all combinations. After dozens lines of declarations, the user can code just 1 line. For your example:
mario << Mushroom << Flower << Feather;
assert (mario == CapeMario);
2