Add support for private constructor

Support for private parameterless constructor for classes without public constructor parameterless