Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract classes useful?
Message
From
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:
01321435
Views:
12
>>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.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform