Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
In real life a guy trying to retro-fit a V8 into a Tesla seems to run into problems...
But the recursive structure of controller/controller_actor structures can make your life easy by allowing shallow inheritance
>With an abstract factory design pattern and possibly some kind of manifest, I could create the desired containership and get inheritance. If a factory could construct a Porsche but replace the engine with a Veyron (which is either a compound class, or is composed from its own manifest) . Hmmm.
>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement