I need to have classes of the following structure in C++.
class A { int y; A(int x) { //Computes y as per x. } }; class B { A obj; int