Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating New Classes
Message
From
23/02/2000 18:12:32
 
 
To
23/02/2000 13:13:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00336166
Message ID:
00336398
Views:
14
>when I create a class based on an existing class which already has code contained within it, this code is not carried over to the new class.

Yes, but you cannot see it, because the code isn't stored in that class, its stored int he parent class. You shouldn't have to modify the code from the parent class in the subclass, otherwise there would be no resaon to inherint the code.

But, in the subclass, putting code in the method overwrites any of the code you put in the parent class, and adding a DoDefault() will fire all of the parent classes code at the point where the functino is included.

Is this confusing? Some experience will straighten it out foar ya'.
Previous
Reply
Map
View

Click here to load this message in the networking platform