Quote:
Originally Posted by CodeMonkeyMatt
Since those are declared as pointers, you use the "name = new ClassName(args);" format in the actual constructor, which you were doing, but then commented out.
If you declared the objects as actual objects instead of as pointers (i.e. Victor Elevator_motor; Victor Arm_motor; instead of Victor *Elevator_motor; Victor *Arm_motor; ) then you would use the format described by MattD.
|

That's right, and I was not even thinking about that. Good catch. My previous post was incorrect.