8 ms·
You can make the constructors on the class private and have a public static method on the class that does the instantiation.
by BitterAmethyst 9y ago
You can make the constructors on the class private and have a public static method on the class that does the instantiation.
- guelo 9y agoFor the simple case yes. But if you want several classes cooperating, maybe helpers or related data classes, your options are assemblies or like you said to shove everything into one giant class. You have less flexibility of separating things out.