Results 1 to 4 of 4

Thread: About inheritance

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    2

    Question About inheritance

    what is the difference between single inheritance and single level inheritance?


  2. #2
    Junior Member
    Join Date
    Sep 2007
    Answers
    2

    Re: About inheritance

    what is the difference between single inheritance and single level inheritance?


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    5

    Re: About inheritance

    Quote Originally Posted by rajimurugan View Post
    what is the difference between single inheritance and single level inheritance?
    Single inheritance means, A class can inherit only one class directly, that means a Class can extend only one class in anycase.
    (Java support single inheritance not multiple like C++)

    Single level inheritance is same as specified above, but java supports mutiple level inheritance

    For instance

    Class A
    {}

    class b extends a
    {}

    class c extends b
    {}

    over here class c is inherting from both a and b.


  4. #4
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: About inheritance

    There is no difference between single and single level inheritance...Both of them same..

    ----------------------
    suresh


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact