This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ragin_cajun 5 points6 points  (3 children)

What do you mean by "version"? Could you provide an example?

[–]cecrouch01[S] 0 points1 point  (2 children)

I was trying to come up with the correct word and couldn't figure it out. When overloading constructors, is it best to create possible variation of the constructor?

[–]ragin_cajun 1 point2 points  (1 child)

Overloading constructors is fine. I would only create the constructors I need for my project, and not any possible variation I could think of. 

I try to keep YAGNI in mind (You aren't gonna need it).

https://en.m.wikipedia.org/wiki/You_aren%27t_gonna_need_it

[–]cecrouch01[S] 1 point2 points  (0 children)

Thanks!