Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB Classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00169994
Message ID:
00170035
Vues:
24
>For one thing, not everything is an object. For another, it doesn't support
>multiple inheritance. I suppose we could call VFP "OOP enough". :-)

Jim asked me this privately, and I thought I'd share it with everyone, just in case someone else was wondering. :-)

>What is multiple inheritance?

Something I dearly would love to have. For example, say you have a textbox class and an editbox class. If you want both of them to be Lucida Console, you could subclass them and change the font of each to be Lucida. However, given multiple inheritance, you could create an 'EntryCtl' class with Font = 'Lucida Console', and have your txtSubclass inherit from TextBox and EntryCtl, and edtSubclass inherit from EditBox and EntryCtl.

Then, if you changed your mind and wanted Courier New, you would only have to change EntryCtl, rather than each subclass. Same goes for methods: I remember once cutting and pasting identical RightClick methods into about 6 different classes....
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform