I have a question related to inheritance. Below classes already exist.
class A;
virtual function disp();
$disaplay(A);
endfunction
endclass
class B extends A;
virtual function disp();
$disaplay(B);
endfunction
endclass
class C extends B;
virtual function disp();
$disaplay(C);
endfunction
endclass
class D extends C;
virtual function disp();
$disaplay(D);
endfunction
endclass
class E extends D;
virtual function disp();
$disaplay(E);
endfunction
endclass
All classes are not hooked with super.disp() in their methods.
Now, I have to implement a class F extended from E. I have to implement disp() function of F that includes functionality of A,B,C,D and E.
How to implement F which executes all functionalities of A,B,C,D,E.
Is it possible ?
Please help.