I'm sure this is possible, I just do not know how to do it. I want to have a class of mine to have members that are of another class. The constructors of the other class take 3 arguments. If I try something like:
Let me further explain. Let's say I have two classes MyObject1 and MyObject2. I have MyObject1 to have members of type MyObject2.
In your code, B just have members of itself, or so it seems. If I'm wrong, let me know. Also note, I'm still learning quite a bit about C++ and there are many concepts I don't know yet.