Original Post
Hi,
I am making a class which can only be declared and used once. And if the user used it else where then the application starts giving complicated errors since the class is accessing and initializing some confidential data which is not even in the class as a private member.
My question is ... How do I restrict the user so that he/she can only declare and use the class once ... and if they declare it or use it again ... they are not allowed to do that by either giving an error message or just passing the same class that has been declared before.
Hope I was a bit clear here :!
Any suggestions or ideas?
I can survive anything ... even NUKES!!!
The Lion King