on ‎2005 Mar 22 8:05 PM
Hello Everybody,
I just one doubt concerning inheritance. For example, the class CL_CRM_IC_SRVTHEAD_IMPL has private methods.
If I create one class, and point CL_CRM_IC_SRVTHEAD_IMPL as his superclass, this methods are not inherited.
Must I implement them by hand in the new class, in the same way they're define in superclass? Or when their are called in application, they're gonna be called CL_CRM_IC_SRVTHEAD_IMPL methods.
Best Regards,
Bruno Garcia
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I have created a Z1_CL_CRM_IC_SRVTHEAD_CN01 class , that inherits CL_CRM_IC_SRVTHEAD_CN01. In there, I added a new attribute and four methods. OK.
So now I have to point this class in his context. His context is class CL_CRM_IC_SRVTHEAD_CTXT. I created Z1_CL_CRM_IC_SRVTHEAD_CTXT that inherits this class, but because of the attribute BTCATEGORY (that points to CL_CRM_IC_SRVTHEAD_CN01) is inherited, I can't change it to my new class.
If I can't change it, so...there's no utility of inherate context nodes?? must I always make a copy of the standart context?
After that...I still need to change CRM_IC_SRVTHEAD_IMPL, that creates a context. The attribute TYPED_CONTEXT is also inherited by is superclass, and therefore I can't change it too...
That's why I asked the above question...
Best Regards and Thank you
Bruno Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.