|
-
January 17th, 2011, 04:56 AM
#1
isolate a static method
Hello everybody!
Here is my problme description.
In my class I have a method which is static, but which, in the same time has to access some data members of my class. Conseqeuntly, all the data members it uses become static, plus other methods of the class...so...everything is transforming, little by little, to static... which is something I obviously do not want to...
I am wondering if there is some design pattern which could help me isolate the static method.
I have to mention that the reason why the method is static is because I need a reference/pointer to it, which has to be known at the run time.
Thank you in advance,
D.M.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|