Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Superclass vs. Subclass structures
Message
 
To
28/10/1998 18:36:40
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00151975
Message ID:
00152093
Views:
24
>#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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform