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 types of the software component being deployed in the sap?

589


how do you call third selection screen ?

1640


If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc

669


What is singleton pattern in OOPS?

968


hi experts,,, what is meant by documentation? test casr preparation? documentation and preparation and Tcode for this? quality and releasing? test case scenario?

1720






What are the difference between tables and structures? : abap data dictionary

651


What is database view ? : sap abap data dictionary

602


Explain the sequences of event block?

553


How many types of tables exists and what are they in data dictionary? : abap data dictionary

714


What does a lock object involve?

669


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

563


How can we handle table control in bdc? : abap bdc

596


What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr

750


How is conversion of data types done between abap/4 & db layer?

632


When the get cursor command used in interactive lists?

594