Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encapsulation and enviroment
Message
From
27/06/1999 12:48:46
 
 
To
27/06/1999 10:51:52
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00234491
Message ID:
00234511
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform