I just started learning C++
let's say i have 2 classes classes A and B
Class A = a1(a,b)
I want an instance of class B attributes to be like this where a1 is an instance of class A:
Class B = b1(x,y,a1,z)
how do i go about doing this?
does anyone has any examples for me?