VB Classes Best Practice - give all properties values?

Posted by Becky Franklin on Stack Overflow See other posts from Stack Overflow or by Becky Franklin
Published on 2010-03-16T14:42:11Z Indexed on 2010/03/16 14:51 UTC
Read the original article Hit count: 360

Sorry if this is a bit random, but is it good practice to give all fields of a class a value when the class is instanciated? I'm just wondering if its better practice to have a constuctor that takes no parameters and gives all the fields default values, or whether fields that have values should be assigned and others left alone until required?

I hope that makes sense, Becky

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about best-practices