Simple inheritance question

Discussion in 'Java' started by knocte, Jul 17, 2004.

  1. knocte

    knocte Guest

    class A implements Cloneable {
    [...]

    public Object clone() {
    [...]
    }
    }

    class B extends A {
    [...]
    }



    Does B need to implement Cloneable interface to be cloneable? Or it is
    not necessary because B is subclass of A and inherits its interfaces?

    Thanks in advance.
     
    knocte, Jul 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. maxw_cc
    Replies:
    1
    Views:
    3,202
    Martijn van Steenbergen
    Dec 21, 2003
  2. cppsks
    Replies:
    0
    Views:
    858
    cppsks
    Oct 27, 2004
  3. karthikbalaguru
    Replies:
    9
    Views:
    1,072
  4. Daniel Pitts
    Replies:
    27
    Views:
    1,961
    Mike Schilling
    Feb 27, 2008
  5. johnsonlau
    Replies:
    1
    Views:
    796
    Kai-Uwe Bux
    Jul 21, 2008
Loading...

Share This Page