I will try to illustrate with a picture :
* ID365 has the standard Class "InventUpdate".
* InventUpdate has sub classes, such as InventUpd_Physical
* I have created extension class for BOTH InventUpdate and InventUpd_Physical
* In the extension class InventUpdate_ClsExtension class I have added a protected method which I want to re-use in sub classes of InventUpdate, such as InventUpd_Physical.
To me this sounds a valid concept. My understanding of extension classes is that they decorate the class they extend. And in fact become 'one' with that class. Is I then possible to extend also a subclass (normal OO) and on that sub classed class also build an extension class? I feel there is NOTHING wrong in this.
But should then the 2nd extension class be able to access protected methods of the first extension class? There are 2 options:
=> if the BP warning is correct and it did consider this situation, then this is NOT allowed
=> if Microsoft did not consider this situation (subclassing and extending both super and sub class), then it could be a situation that Msoft did not think about yet.
I would like to have code which is BP warning free. Either I must not use protected methods in extension classes, OR microsoft must remove that BP Warning.
Can anyone comment on this? Does anyone know why protected methods are not allowed here? Does anyone know what I should do here?
Looking forward to the response.