|
-
September 12th, 2005, 07:34 PM
#1
clone method
here is one of the assignment that i am not sure. let me know if you know something.
Suppose that the Foo class has a clone method. what typically happens when an call x=(Foo) y.clone(); is given for two Foo objects?
A) x is set to refer to a copy of y's object
B) x is set to refer to the same object that y refers to
C) Compiler error
D) run-time error
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|