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.
Hi Bruno,
that's the way it should be. You have a public section, a protected section and a private section. To the public section everyone has access, to the protected section only the class and its subclasses have access, and to the private section only the class itself has access, so there is no inheritance for private methods and attributes.
Regards,
Rainer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.