Information générale
Catégorie:
Programmation Orientée Object
>What does happen when you have parent's with the same properties and methods and they conflict?
The programmer must explicitly impiment the conflicting member function (C++ talk for method), this can be as simple as using the scope resolution operator to call the appropriate parent's member function.
>I am still not convinced that some of the uses of multiple inheritance can't be simulated in VFP.
It is not worth the trouble. Multiple inheritance is too tedious to simulate, the language must support it directly for it to be easy to use. Look at the way FoxPro handles data, contrast this with handling data in other languages.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement