C++

Dec 16, 2008 12:15

I need help. Anyone know C++ and/or can explain how constructors work? I keep thinking I understand and then getting confused when I look at an example.

Leave a comment

Comments 2

nothorian December 21 2008, 18:07:32 UTC
It's good practice to initialize variables before using them and constructors are designed to make that easy for you. Constructors also facilitate object oriented design because you can initialize an object based on several parameters ( ... )

Reply

tabsq December 22 2008, 05:38:13 UTC
Thanks, I had an exam that day and it took like all day for me to figure that out. The websites and books I looked at completely confused me and I had to play around with code :p. I bet this will help me with my make-up projects that I have to do in january.

Reply


Leave a comment

Up