Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class inheritance versus Object (run-time) inheritance
Message
De
07/07/1999 20:14:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Class inheritance versus Object (run-time) inheritance
Divers
Thread ID:
00238626
Message ID:
00238626
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform