Search:

Type: Posts; User: pbrockway2

Search: Search took 0.13 seconds.

  1. Replies
    8
    Views
    1,948

    Re: Triple Inheritance

    You don't need those "super" keywords.

    Instances of C are also instances of B and they are also instances of A. So it is perfectly acceptable (and clearer) to write



    package inheritance;
    ...
  2. Replies
    8
    Views
    1,948

    Re: Triple Inheritance

    Your original post suggests you want B to extend A, and C to extend B. And that's fine - ie the following compiles:



    class A {}
    class B extends A {}
    class C extends B {}


    Java doesn't...
Results 1 to 2 of 2