General information
Category:
Coding, syntax and commands
Cetin is right.
if you mark your constructor as either protected or private and provide a factory method (static) to get an instance of the object, it will solve you rproblem.
{
protected MyClass(){;}
public static MyClass getMyClass(param){return new MyClass();}
}
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