If the class will not be used by third parties and you do not need an overloaded constructor, do not write an empty constructor.
But...
Imagine that you have already sent the product, and third parties use your class. A few months later, a new requirement appeared that forces you to add a constructor with an argument.
Now, with this, the C # compiler no longer generates a default constructor. If you do not explicitly add an empty constructor, the third code will be broken.
In my opinion, you should always define empty constructors (one liner) for public classes used by third parties.
Soe Moe Jun 03 '10 at 7:45 2010-06-03 07:45
source share