Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass vs. Subclass structures
Message
 
À
29/10/1998 07:41:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00151975
Message ID:
00152376
Vues:
23
>Hiya Nick ---
>
>Very, very good point. Engines, brakes, and wheels could have their own superclasses, after all, they behave differently on different vehicles. Soo...this makes the instances composite objects, eh?

Yeah, I think the Vehicle class should have .Parts array property.

*** vehicle.Init()
*...
FOR EACH oPart IN THIS.Parts
oPart.Init()
NEXT


Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform