Hi There;
I've read "Code Complete" and the Author mentioned a principle :
"Be critical of classes that contain more than about seven data members"
There is a point that I can not understand is "data member". Is he mentioned a class that contains seven different type of variables, or seven variables in same type?
I mean, according to author, which class must I take care, Class1 or Class2 below?
Code:
public class Class1
{
type1 var1
type2 var2
type3 var3
type4 var4
type5 var5
type6 var6
type6 var7
}
Code:
public class Class2
{
type1 var1,var2,var3,var4,var5,var6,var7
}
Thanks in advance.