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. Advertisements

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,355
    Martijn van Steenbergen
    Dec 21, 2003
  2. knocte

    Simple inheritance question

    knocte, Jul 17, 2004, in forum: Java
    Replies:
    3
    Views:
    499
    Adam Maass
    Jul 19, 2004
  3. JustSomeGuy

    Simple inheritance question.

    JustSomeGuy, Jul 13, 2005, in forum: C++
    Replies:
    3
    Views:
    381
    JustSomeGuy
    Jul 17, 2005
  4. Michael
    Replies:
    6
    Views:
    383
    Michael
    Mar 10, 2007
  5. Thomas
    Replies:
    6
    Views:
    798
    Patricia Shanahan
    Jul 12, 2007
  6. Numeron

    simple inheritance question

    Numeron, Nov 27, 2007, in forum: C++
    Replies:
    6
    Views:
    412
    Tadeusz B. Kopec
    Nov 28, 2007
  7. crea
    Replies:
    11
    Views:
    493
    MikeWhy
    Apr 5, 2011
  8. crea
    Replies:
    17
    Views:
    486
Loading...