on 02-17-2012 10:01 AM
Hi guys,
. What is the difference between narrowing cast and widening cast?
Thanks
Dinesh90
Hi,
Go to this website you will have a good idea about it
[CASTING|http://help-abap.zevolving.com/2008/09/abap-objects-narrowing-cast/]
Thanks
Karthik.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Following links will be useful for getting your answer.
Narrow casting : http://help-abap.zevolving.com/2008/09/abap-objects-narrowing-cast/
Widening Cast : http://help-abap.zevolving.com/2008/09/abap-objects-widening-cast/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Narrow casting also called as 'upcasting' and wide casting also called as 'down casting' are concepts related to inheritance in object oriented prgramming.
Check the links which will give detailed explanation bout the same:
http://www.saptechnical.com/Tutorials/OOPS/Casting/Index.htm
http://allsapabap.blogspot.com/2008/12/abap-objects-narrowing-cast-upcasting.html
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can u say me in detail
Dinesh90
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
If we copy an instance of sub class to super class its called narrowing cast and the vise versa of it is widening cast.
Thanks
Karthik.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.