What is up-casting and down casting? with example

Answer Posted / hari prasad

When the level of hierarchies are considered, it is the super class at higher level & sub class at lower level. Hence the assignment of subclass to a superclass is up casting & super to a subclass is down casting.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the techniques involved in using sap supplied programs?

605


Explain the different types of view?

607


What is a data dictionary? : sap abap data dictionary

557


What are the basic objects of the data dictionary?

574


What is example class

888






What is the differences between structure and table in data dictionary in abap?

587


What are the different types of abap reports in sap?

771


Can we create field without data element? If yes, how?

696


Can a transparent table exist in data dictionary but not in the database physically? : abap data dictionary

705


What is the diff between database view and maintenance view?

594


What is the difference between field-group header and other field groups?

565


What is the difference between getting and get late?

591


Is logo in script 1st stored as tiff format before uploading or in jpeg format?and where is that stored after uploading?

1604


What has to be done to the packed fields before submitting to a BDC session.

723


What is lock objects? : sap abap data dictionary

616