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

What happens if a function module runs in an update task?

781


Did you create help views?

759


What is meant by payscale structure? How did you configure pay scale structure? : sap abap hr

743


If a table that is to be extended contains a long field, we cannot use append structures why? : abap data dictionary

900


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

2201


Difference between sap script and report?

953


What are your ways to performance optimization?

1156


can i use table key and key in an internal table and explain the functionalities of each one and what functionality does it give if both are used for same internal table

1997


What are the differences between primary and secondary indexes?

859


What are the time related infotypes? : abap hr

827


What is the difference between pnp and pnpce? : abap hr

1355


What are the fields in a bdc_tab table? : abap bdc

812


What is the name of the system variable that holds the contents of the selected line in interactive reporting?

961


What are the domains and data elements?

1213


What are base tables of an aggregate object? : abap data dictionary

822