Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Superclass vs. Subclass structures
Message
 
To
29/10/1998 07:41:38
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00151975
Message ID:
00152376
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform