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 advantages of logical databases : abap hr

772


Kindly help me to Know the process of mapping in EDI from R/3 to a convertor(third party which translates IDoc flatfile to EDIFACT /XML / FTP /HTTP ) ?

1756


What is a data dictionary? : abap data dictionary

754


Explain the Inportance of pa30? : abap hr

970


What will happen when we use fully buffered in abap?

752






How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?

748


What is meant by a schema? : sap abap hr

761


Define the various contents of technical specifications ?

816


Difference between open sql and native sql? : abap data dictionary

783


What are the different modules of sap? : sap abap hr

767


How to transfer data into line items using batch input session method? : abap bdc

770


What is the difference between a substructure and an append structure? : abap data dictionary

826


Can we define our own match code id's for sap matchcodes? : abap data dictionary

771


How are the date abd time field values stored in sap?

803


What is the syntax for call transaction? : abap bdc

768