04-14-2010 8:18 AM
Hi all,
Can anyone plz explain me the concept of narrowing cast and widening cast with an example?
Regards,
srini
04-14-2010 8:54 AM
Hi Srinivasulu,
Narrowing cast means whenever Sub-Class Reference is Assigned to a Super Class reference it is Narrowing Cast,
Widening cast means Super Class reference is Assigned to a Sub-Class Reference then it is Widening Cast.
See the following links for more information,
[http://help-abap.blogspot.com/2008/09/abap-objects-narrowing-cast-upcasting.html]
[http://help-abap.blogspot.com/2008/09/abap-objects-widening-cast-down-casting.html]
Regards,
Raghava Channooru.
04-14-2010 11:52 AM
Please search before posting basic or generic questions.
Thread locked.
Thomas