Hi all, I've got a question about how to introduce other classes objects as member in another class:
This works until I need to pass arguments to Otherclass constructor: am I forced to declare member as a pointer and then instantiate it as new within the MyClass constructor?Code:#include "otherclass.h"
Class MyClass {
private:
int member1;
Otherclass oth;
};