2 Replies Latest reply on Jul 19, 2006 4:24 PM by gareth_cole

    super.super

    gareth_cole
      Hi,

      I'm trying to extend a component.
      class B extends class A, I'm writing class C to extend class B i.e. C extends B extends A

      Now A has a createChildren() method. Class B already over-rides this method along the lines of:
      createChildren(){
      //.....do some stuff
      super.createChildren();// calls this method in class B
      }


      In my class C, I want to over-ride the createChildren() method also. I don't want it to call createChildren() in B, but I do need it to call createChildren() in A. Ideally what I want is:
      createChildren(){
      //.....do some stuff
      super.super.createChildren();// calls this method in class A
      }

      unfortunately this gives me an error: "There is no method with the name 'super'."

      Does anyone have any ideas if it's possible to do what I want??
      Thanks