selecting suitable constructor according to the number of parameters