What is up-casting and down casting? with example

Answer Posted / naresh bammidi

The assignment of a subclass instance to a reference
variable of the type "reference to super class" is
described as a narrowing cast, because you are switching
from a more detailed view to a one with less detail. It is
also called as up-casting.

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi All , Would be providing online trainings for SAP ABAP , guidance with real time experience examples , guidance in profile prepartion . Any one intrested please contact on 8978890047.

1975


Hi,have Good Command in SAP ABAP, ABAP WEBDYNPRO now i want to learn sap IS utilities.. can u plz suggest me is it useful r not? If not can i learn BI? Is ABAP with BI have gud future?

1549


How do you control printer functions from sapscript?

709


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization

622


What are the basic objects of the data dictionary?

579






What are the personnel administration related infotypes? : abap hr

612


What is a match code? : abap data dictionary

647


What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary

589


What does the insert statement in extract datasets do? : abap modularization

588


what is leave to TRANSACTION?

1006


How do you get the number of lines in an internal table? How to use a specific number occurs statement?

530


How is collect statement different from append?

594


What is update task

7646


What are the events in abap/4 language? : abap hr

621


Select query optimisation

908