difference between constructor and properties in C# -
i new programming, please explain me difference between constructor , property in context c#. since both used initialized class fields, & 1 choose in given situation .
besides technical stuff, rule of thumb use constructor parameters mandatory things, properties optional things.
you can ignore properties (hence optional), can't ignore constructor parameters (hence mandatory).
for else, i'd recommend reading c# beginners book or tutorial ;-)
Comments
Post a Comment