The Artima Developer Community
Sponsored Link

Java Answers Forum
well whats the importance of clone?what is a clone??

1 reply on 1 page. Most recent reply: Aug 19, 2002 5:06 AM by thomas

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
senthil

Posts: 23
Nickname: rickk84
Registered: Aug, 2002

well whats the importance of clone?what is a clone?? Posted: Aug 18, 2002 8:41 AM
Reply to this message Reply
Advertisement
well whats the importance of clone?what is a clone??


thomas

Posts: 42
Nickname: turbomanic
Registered: Jul, 2002

Re: well whats the importance of clone?what is a clone?? Posted: Aug 19, 2002 5:06 AM
Reply to this message Reply
A clone is an exact copy of an object but it is independent of the object. If you let Object a=Object b then by changing some variable in a will also change the variable in b (since a is a reference to b). If a is a clone of b then a is the exact copy but is independent of b therefore by changing a variable in a will not change the variable in b.

Flat View: This topic has 1 reply on 1 page
Topic: Problem with targetting another frame Previous Topic   Next Topic Topic: Disabling PrintScreen

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use