Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can code be inherited?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00649179
Message ID:
00649419
Vues:
10
>Maybe i did not explain well.
>
>I want may control autocopy all code from the parent class.
>
>
>(La idea es copiar automaticamente el contenido de la clase en el objecto actual)

I agree in principle with Mike Helland - the whole idea of OOP is NOT to copy lots of code. However, a few lines of code remain which can be used as a template.

What I do in practice is copy an existing class to another class library (drag-and-drop), rename it, and copy it back. Thus, I have a template where I can start making changes.

However, please keep in mind the idea to reduce the code thus copied - putting anything generic in the parent of both classes (the original and the copy).

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform