0 Replies Latest reply on Apr 18, 2007 2:30 AM by Parag_Metha

    InHeritance

    Parag_Metha Level 1
      Hi All,

      I am trying to implement multilevel inheritance.

      Class GrandPraent
      {
      protected function xyz()
      {
      c=a+b;
      }

      }

      Class Parent extends GrandParent
      {
      override protected function xyz()
      {
      super.xyz(); //c=a+b;
      c=a*b;
      }
      }

      Class Child extends Parent
      {
      override protected function xyz()
      {
      c=a/b;
      // and required c=a+b but not c=a*b
      //How to achieve this? I don't want functionality of XYZ() from parent class but require functioanlity of GrandParent XYZ()?
      //Also note that in my scenario, GrandParent and Parent are builtin classes.
      }
      }

      Can any one help me out to solve this issue.

      Thank You,
      Parag