posted 21 years ago
MD: Can i pass any number of parameters to a constructor..??
Sure.
MD: Will it affect the performance of my program in any way..
I don't think so.
MD: Is it a bad design
Might be. Might not be.
Why can't you group the individual parameters with an object?
For example,
Replace
with
Where Name object will contain the firstName, lastName & the initial. And the Address object will contain the address details.
Mani
Quaerendo Invenietis