Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33193
| From | Xue Feng <xf.lotus@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Why it necessary to implement clonealbe interface? |
| Date | 2015-11-24 23:28 +0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n31vi5$dkg$1@speranza.aioe.org> (permalink) |
A class has to implement cloneable interface, otherwise its object can
not be cloned. IMO, it is enough that a class clone itself by inheriting
the clone method from Object class. It is somewaht reduntant to
implement cloneable interface. Actually, there is nothing in cloneable
interface. Namely, it is defined as follows:
interface cloneable {
}
I wonder the reason for this design. Any explanation? Thanks.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Why it necessary to implement clonealbe interface? Xue Feng <xf.lotus@yahoo.com> - 2015-11-24 23:28 +0800
Re: Why it necessary to implement clonealbe interface? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-24 11:03 -0500
Re: Why it necessary to implement clonealbe interface? Arne Vajhøj <arne@vajhoej.dk> - 2015-11-24 19:49 -0500
Re: Why it necessary to implement clonealbe interface? Eric Douglas <e.d.programmer@gmail.com> - 2015-11-25 11:01 -0800
Re: Why it necessary to implement clonealbe interface? Arne Vajhøj <arne@vajhoej.dk> - 2015-11-25 16:41 -0500
Re: Why it necessary to implement clonealbe interface? Lew <lewbloch@gmail.com> - 2015-11-29 23:00 -0800
csiph-web