Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inheritance loses properties/methods
Message
From
13/07/2000 15:20:38
 
 
To
13/07/2000 15:16:19
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00391738
Message ID:
00392003
Views:
11
I tried to format that on the screen, but it got garbled.

Let's say you have a container and put controls in it and define it as a class. As you note, changes made later to the controls at the class level do not propagate to existing instances of the controls.

In order to do that, create each object as a separate class. Make the composite object when instantiating. Then, when you change any property or method of a class, it will be propagated to all existing instances.

This is standard operating procedure for containers. With that knowledge in mind, I'm much more inclined to do the 2nd process for flexibility later on, but you do lose a bit of convenience.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform