Skip to Content
0
Former Member
Feb 18, 2009 at 04:59 AM

Question about ABAP OO

17 Views

Dear gurus,

say, we have a class A, which has a constructor and a protected method A, and in the constructor we call the method A.

then we built a class B, which inherits from A, and we redefined the method A, and we do nothing to the constructor.

we expected that when we instantiate class B, the redefined version of method A is called automatically, but the debug shows that the original version of method A is called.

do we need to redefined the constructor of class B in order to call the redefined method?

thanks and best regards.

Jun