Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can code be inherited?
Message
From
25/04/2002 19:16:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00649179
Message ID:
00649419
Views:
8
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform