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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -