Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any way around this issue?
Message
From
30/05/2003 14:08:00
 
 
To
30/05/2003 13:46:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00793727
Message ID:
00794666
Views:
37
>Bill,
>
>I don't think you're blind :)
>
>For the average, run-of-the mill control, such as a button or textbox, there does not necessarily need to be an abstract layer. You can just create a class from the baseclasses that you always use. Now a framework might put another layer in there, so they can make changes to their highest level without (theoretically) breaking anything you might have changed in the other level they provide to you.
>
>Here's an example where abstract could come into play (Mario's looks good, too). You could have an abstract class called vehicle, which defines certain things common to all types of vehicles. Then you could have subclasses for car, bus, truck, etc. The vehicle class itself would be abstract if you never wanted to create an instance of a vehicle directly.
>
>>Hi Jim,
>>I'm still missing it.
>>Doesn't Mario's example just demonstrate the value of inheritance in sub-classes?
>>I don't see how it demonstrates a need for an "abstract" class that never gets used.
>>Or am I really blind?
>>
>>

Hi Steve,
Now we mey be getting somewhere.
I get your vehicle class, but it would still have a BaseClass (probably Custom). What I seem to be getting from the others is that the vehicle class should be based on a "concrete" class mySubCustom that's based on an "abstract" class myCustom that's based on Custom. I should not base vehicle on MyCustom (because it's abstract) but instead base it on mySubCustom. WHY?
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform