Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can code be inherited?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00649179
Message ID:
00649204
Views:
9
>I want may control autocopy all code from the parent class.

Nope, the code isn't auto copied. Why would that be desirable, if youdon't mind me asking. The whole idea of inheritance is to create reusable, encaspulated code.

If you wrote a routine in a class, and it copied itself, and you needed to make changes to that routine, you would have to fix that code in the class AND everywhere it was copied. The goal of inheritance is to make one change.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform