Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Object Oriented Programming
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only