Is there a way to prevent the usage of the default constructor?
All I can think of is throwing an exception, but I would like something that causes a compile time er
Make it private.
So,
class SomeClass { private SomeClass() { } public SomeClass(int SomeParam) { } }