Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Singleton Class
Message
From
07/11/2005 08:05:01
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
03/11/2005 09:36:06
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
01064942
Message ID:
01065942
Views:
22
>1) Can I avoid that a user can call CREATEOBJECT directly, bypassing the GetSingleton method ?
>
>2) Can I avoid that a user redefines the Init method in the subclass ?
>

Um. The user wouldn't call the object nor redefine the init. A programmer/developer does that. If you're building a class for programmers to use, you have to trust they'll use it as intended and only expand it along those lines.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform