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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -