Hello,
I am in Object Oriented Design for C++ at the moment...
The test we are having has a question on it and the professor wants us to find and know the answer before we come in for the test.
The question is this:
The following code out puts what for each language:
x=3;
y=x;
(1) print x, y
x=5;
(2) print x, y
Python: (1) 3, 3 (2) 3, 3
Java: ?
C++: (1) 3, 3 (2) 3, 3
I am guessing... that Java would be: (1)3, 3 (2)3, 5