How to type casting in OOPS ABAP and ABAP ?
Answers were Sorted based on User's Feedback
Answer / rs agarwal
1. Narrow casting
2. Wide casting
Demo on "Narrow Casting" Parent class->M1 , Child class-
>M1,M2
Attributes of super class can only be accessed.
Methods defined at Super class(M1) can only be accessed.
Methods with REDEFINED Logic(M1) will be called
Methods in child class (M2) cannot be accessed
Demo on "Wide Casting" Parent class->M1 , Child class->M1,M2
Assign address of PARENT to CHILD Class object
Methods defined at child class(M2) can also be accessed
with Parent reference.
Methods with REDEFINED Logic (M1) will be called
The cast is only possible if the object was instantiated as
the child and then it was casted to the parent object and
then back again to the child object. The child has
everything the parent has so there is no problem with this
path.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / anil kumar
two types of casting
1.narrow casting
2.wide casting
it will comes under inheritance concepts.
like creating object for subclass by using that object we
will call super class methods
Is This Answer Correct ? | 3 Yes | 2 No |
What are the components in technical setting while creating a table
check sy-subrc = 0 and if sy-subrc =0 difference explian
I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc
If there are 100 records...explain the BDC session method step by step how you gonna do ?
Can we set page headers to details lists?
can we write at-line-selection and at-user-command at a time in same program. plz some body help me to know this answer.
If yes then why do we require logical database
What are the steps in creating screen ?
What is meant by write lock? : sap abap data dictionary
What is output determination?
HI friends, in USER EXITS after finding correct EXIT when am double clicking on the "INCLUDE ZXM06U36" it is not entering inside of the program, it is givimg the error message as "Program names ZX... are reserved for includes of exit function groups". Please help me to solve this problem.
1/ what r the driver programe used in your script ? 2 / can we change from classical report to interactive report ?