Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement