Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass vs. Subclass structures
Message
 
À
28/10/1998 17:15:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00151975
Message ID:
00151990
Vues:
24
To quote Grady Booch, it depends on the application. :)

However, some general comments can be made, I guess. I think we'd all try to avoid 1), since that would mean modifying the base class every time a new method of locomotion was introduced. 4) would not be suitable if in fact there was common functionality for Vehicles in the app. The choice between 3) and 4) would depend on who is moving the objects, and why. If you were simulating city traffic patterns, e.g., then you might not actually care how the moving was done, you just know that every cycle, everything needs a chance to move itself.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform