How many variables should a constructor have?
问题 I realize this is a pretty open question and could get a variety of answers, but here goes. Using C# (or Java, or any OO language), is there a general rule that states how many variables should be passed into the constructor? The number of variables I am passing into the constructor of the extended classes seem to be getting out of hand. In an effort to encapsulate the data of a class, I declare the members private, initialize them in my constructor, and use public accessors. Here is an