Say for example I have four classes A, B, C and D; where D's constructor takes A, B and C as parameters. If I have the following implementation:
public static main(String[] args) {
A = new A();
B = new B();
C = new C();
D = new D(A, B, C);
}
And the instance variables for D are:
private A objA;
private B objB;
private C objC;
Will, for instance, the "value" of A (new A()) be copied to objA after D's instantiation?