3 ms·
> You have humans, robots, and dogs all fitting into your nice class hierarchy. But now you need a robot dog that breaks everything. I like the way you put tha
by breck 5y ago
> You have humans, robots, and dogs all fitting into your nice class hierarchy. But now you need a robot dog that breaks everything.
I like the way you put that. Though humans and dogs are 85% similar at a DNA level, so makes sense for them to inherit from a common parent. And my guess is robots and robot dogs would be ~85% similar at a building block level, so dog would inherit from robot.
I think go easy on levels of inheritance but have really strong root classes that most things inherit from.
- suzzer99 5y agoHeh, I actually had that wrong. I probably should have watched the video instead of going by my recollection. He has a mix of robots and animals. Same concept.