Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract classes useful?
Message
From
03/06/2008 16:52:59
 
 
To
03/06/2008 16:40:14
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320973
Message ID:
01321439
Views:
10
>>>You might consider returning .f. from form.load in abstract forms, so it's abstract or concrete controls won't eve init.
>>
>>There may well be code in the Init of the form or of some classes that makes the formclass complete in runtime.
>
>I consider it the decision of the developer to decide if a class including form classes is abstract. it will never get concrete by loading subobjects. It would already be complete, if it has the code in it to make it complete. So I would not consider a change from abstract to concrete at runtime, it's decided already at design time.
>
>If i desing an abstract vehicle class that laods subobjects at it's init by it's configuration or data driven, that makes a car or a truck object of it, it wouldn't be an abstract vehicle class anymore, it would rather be a universal vehicle class. And maybe a bad designed one. Depends on the real case.

Hmm, I get the feeling that our hunches of abstract versus concrete are not entirely equal. You may well be right, but I also would like to hear what others have to say about it.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform