Results 1 to 7 of 7
Thread: Help with Deep Cloning
- 10-30-2008, 03:37 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 13
- Rep Power
- 0
Help with Deep Cloning
Okay I'mn trying to figure out how to deep clone an object here is a link to the code and other info on what im trying to do. basically i am trying to make defensive classes using deep cloning on the objects they make in order to keep the user from editing the objects a second time. Thanks for any input.
java-forums.org/new-java/12910-cloning-problem-java.html
- 10-30-2008, 01:48 PM #2
Can you describe your approach to solving the problem?
What techniques are you using to keep the user from editing the objects a second time?
- 10-30-2008, 05:12 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 10-30-2008, 05:13 PM #4
Member
- Join Date
- Oct 2008
- Posts
- 13
- Rep Power
- 0
I'm supposed to use Deep and Shallow cloning to accomplish this. I am not supposed to edit Main() and I don't see any effect after putting my deep cloning method. Am I going about this the wrong way or missing something?
- 10-30-2008, 05:18 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
How can I say anything without knowing what you have done.
- 10-30-2008, 05:28 PM #6
Member
- Join Date
- Oct 2008
- Posts
- 13
- Rep Power
- 0
It wouldnt let me post a link Here it is again
www/java-forums.org/new-java/12910-cloning-problem-java.html
just take out the slash after the www apparently im not allowed to post links >.>
all of the code is in that thread.
- 10-30-2008, 05:34 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ok. But why are you start another thread is you don't have a new question to ask. Please don't do that next time, don't ask the same question in multiple sub-forums. Choose the correct one and stick with that.
Similar Threads
-
deep copying arraylist to add to a list
By alvations in forum New To JavaReplies: 13Last Post: 10-08-2008, 03:13 PM -
Deep Copy Test
By Java Tip in forum java.langReplies: 0Last Post: 04-16-2008, 11:05 PM -
Cloning objects
By Java Tip in forum Java TipReplies: 0Last Post: 01-04-2008, 09:33 AM -
how can i deep copy objects themselves instead of handles or references.. ?
By ishakteyran in forum Advanced JavaReplies: 0Last Post: 12-28-2007, 12:25 PM -
Cloning in Java
By gchalpatirao in forum Advanced JavaReplies: 0Last Post: 08-14-2007, 03:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks