If I have this
and I doCode:class A { int a; Object B; .... }; class B { int b; AnotherObj C; }; ...
then the copy constructor is called and a shallow copy is made. Is a.B copied as well?Code:A a = myObjA;
I know that a shallow copy in languages like C# or Java don't copy the objects, since they only have references. But what about in C++?