Monday, April 22, 2013

Error : 'XXXX' does not contain a constructor that takes '0' arguments


If you provide a parametered constructor to a class, then you must also provide a parameterless (default) constructor.

If you only provide a parameter constructor , you will get something like this :
‘XXXX’ does not contain a constructor that takes '0' arguments 

No comments:

Post a Comment