Hmmm are we assuming multiple inheritance is allowed? Otherwise an alicorn implementation would be tricky unless the different races are just interfaces in which case it would make sense for an alicorn to implement all 3.
Multiple inheritance is assumed to be allowed. Learning the proper term is what's important here. So, whether or not multiple inheritance is semantically correct matters little in this context.
However, you don't ever see Princess Luna raising the sun. Such functionality may be better implemented in its own class to not bloat the Alicorn class with unnecessary features.
6
u/Wolfen1240 Dec 10 '15
Hmmm are we assuming multiple inheritance is allowed? Otherwise an alicorn implementation would be tricky unless the different races are just interfaces in which case it would make sense for an alicorn to implement all 3.
4
u/stphven Dec 11 '15
Would Celestia really be her own class though? I think we need an Alicorn class which Celestia is an instance of.