I would like to have a file in my project which contains variables for use by all classes. I this possible to accomplish efficiently. I have heard that using a module with static varibles could work.
Jump to Post
I'm not sure I understand. Classes shouldn't be using external variables. If you have a file which defines variables and they are used by multiple classes then you are making the inner workings of the classes dependent on external variables. If I've completely missed the point then please elaborate.
All 3 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.