I have a test next week for c++ and I\'m preparing myself for it. I\'m confused when I have 2 classes as shown below. I have to walk through the execution of the code, line by l
Current approach works only if you have a default constructor in one class. It is better to initialize members in constructor initialization list:
two(int a, int b, int c, int d) : x(a,b), y(c,d) { cout << "made one two\n"; }