>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