Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass vs. Subclass structures
Message
 
À
28/10/1998 18:36:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00151975
Message ID:
00152093
Vues:
25
>#3 and #4 defeat OOP

Again, it all depends. #4 might be entirely appropriate if there was no common interface needed among the classes; i.e. if there was no need to treat Vehicles polymorphically. In the VFP world, we don't descend all classes from a common base class, like they do in Smalltalk.

#3 might well be the best solution, if the concept of moving doesn't need to be treated polymorophically. The concept of "moving" might be too general for a given app.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform