Hello,
I am using a class whose constructor takes a parameter as follows:
My code is basically:
...which generates errors. How do I properly pass the OtherClass instance to this constructor?
I am using a class whose constructor takes a parameter as follows:
Code:
Class(const OtherClass& param1)
My code is basically:
Code:
OtherClass oc = new OtherClass();
Class c = new Class(oc);
...which generates errors. How do I properly pass the OtherClass instance to this constructor?