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 error.
See Question&Answers more detail:osIs 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 error.
See Question&Answers more detail:osI think that should cover all bases...