Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encapsulation and enviroment
Message
De
27/06/1999 12:48:46
 
 
À
27/06/1999 10:51:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00234491
Message ID:
00234511
Vues:
24
>Dear All!
>
>I am on rewrite my semi-OO application to meet the closest criteria of OOP.
>
>My first big problem I faced, how to give the info to my BusinessObjects about envirometal data (e.g.: path of database files, ... etc.)
>
>I identified two main algorythm:
>passing the an object parameter to init method
>creating the enviroment object internally
>
>Which one fits best into the world of OOP?

Business objects in most frameworks either search for these properties in an application object, or in the parent form, which probably got them originally from an application object. Only if the object is not contained and the application object cannot be found, it should take on a set of defaults, or instanciate an application object that knows how to establish defaults.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform