Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class inheritance versus Object (run-time) inheritance
Message
From
07/07/1999 20:14:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Class inheritance versus Object (run-time) inheritance
Miscellaneous
Thread ID:
00238626
Message ID:
00238626
Views:
57
I'm just learning to grok this stuff, so please be patient.

It strikes me that it can be useful for objects to inherit PEM attributes from their class hierarchy or from the object hierarchy in which they execute at run-time. For example, the default Error Event could be inherited from the class-hierarchy upon which an object is based, or could, for example, be 'inherited' from the form object from which it was invoked at run time.

In a way, THISFORM and THIS are a means by which the abstract class hierarchy can tell its descendents to reference the attributes of their respective runtime parent objects. But of course, you still must have enough forsight at class definition time to enable run-time objects to (by default) inherit behavioral requirements from the container objects that contain them.

(This question seems strikingly similar to the old nature vs. nurture debate! ... hmm?... Object Oriented Existentialism?? ;-) )

Does classical OOP thinking address this distinction and are 'THISFORM' and 'THIS' VFP's primary means of addressing the issue, or am I just an Old Procedural Programming Dinosaur (OPPD for you AN's...acronym nuts) who's still having trouble seeing beyond the bounds of his native worldview?
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Next
Reply
Map
View

Click here to load this message in the networking platform