You could have an object you pass around, or you could use a Singleton design pattern - to allow all classess/methods you care about to find the configuration information.
If you wrap use one of the many existing configuration file readers inside your singleton you'd also not be hard-wiring entries.
In reply to Re: Passing Information between objects
by skx
in thread Passing Information between objects
by ReinhardE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |