does java support multilevel inheritence via interfaces

Discussion in 'Programming' started by viron86, Nov 13, 2008.

  1. #1
    hey java experts give me answer for the above question wit proper reasoning
     
    viron86, Nov 13, 2008 IP
  2. viron86

    viron86 Active Member

    Messages:
    426
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    inheritance mean everything from parent class comes down in child class
    that is instance data,method,final data except thing declared private


    while in case of interface only final data and signature comes down from parent to child class
    that is instance data,method, doesnt comes down by inheritance

    simple eg:
    inhertance
    if father is a king then son is surely a prince

    interface:
    if father is a doctor that doesnt means son will also become doctor by inheritance,he has to study to become doctor
     
    viron86, Nov 13, 2008 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    No java does not support multiple inheritance.
     
    it career, Nov 14, 2008 IP
  4. haoyou2008

    haoyou2008 Banned

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes,but do not support Multiple inheritence via class,
    as u see in

    String.class
    implements Serializable,Compareable,CharSequence (jdk1.5)
     
    haoyou2008, Nov 16, 2008 IP