Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any way around this issue?
Message
From
30/05/2003 13:51:25
 
 
To
30/05/2003 12:59:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00793727
Message ID:
00794652
Views:
27
Bill,

>Hi Mario,
>
>I understand inheritance with sub-classes.
>What I don't understand is why I should have a level of "abstract" classes (that's never used) between VFP's BaseClasses and my "concrete" myBase classes that I use to create objects with. When I need different behavior I create a sub-class from myBase, but when I want a universal change I just modify myBase. What does the "abstract" class accomplish?
>

I think you do this to insulate against changes made by MS to the base classes. If MS changes the font of the textbox to Wingdings you'll need to go to every textbox you have and change the font back to whatever. If you had subclassed the base class textbox and used it as the base you would only need to change it there. I don't know how the term "abstract" got mixed into this but it is incorrect (from what I know anyway).

Dan
Previous
Reply
Map
View

Click here to load this message in the networking platform