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.
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
( ... )
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.
Comments 2
Reply
Reply
Leave a comment