Does an object created with a copy constructor reference the same memory location that the original object references? Explain.
What will be an ideal response?
If properly coded, a copy constructor should create an object that is separate from the original object, that is each object should have distinct memory locations. The new object created by the copy constructor will have instance variables with the same values as the original object.
Computer Science & Information Technology
You might also like to view...
In the OpenOffice Gallery, you can mouse over clip art to see its description or name in a pop-up ScreenTip
Indicate whether the statement is true or false
Computer Science & Information Technology
Is the status bar Fit slide to current window button
Indicate whether the statement is true or false
Computer Science & Information Technology