This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clone() method over ridding

 
ravikdcs dixit
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
override clone() method such that:-
1. we have not to implement Cloneable Interface and hence 'throw' statement
2. make clone() public so that can be used anywhere
3. make 'deep copy' of references and not 'shallow copying' of references
whenever to call clone method on an object containing reference as parameter
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Do you have a question?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sending me a copy of this post by PM didn't help. What I'm saying is that this doesn't look like a question, just a number of vaguely unrelated statements. Is there something you would like us to tell you?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic