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 are the function modules that are generated when you activate a lockobject? : sap abap data dictionary

573


Print options in smartforms?

1566


Reports: Event functionality.

885


What is the difference between free and refresh?

595


What is a table attribute?

583






Why do we use abstract class

1027


Define subtype ? : abap hr

609


What does the insert statement in extract datasets do?

624


in bdcsome times we get the ok code for "enter" wrongly instead of '/00'.what is the reason.how we can exceed this problem.

1721


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

606


Explain what is the difference between sy-tabix and sy-index? Where it is used?

558


What is size category?

553


What is payroll driver ? : abap hr

610


Structures can contain data only during the runtime of a program (t/f) : abap data dictionary

767


what comes in Timkein written test I hope some body can tell me at this id plz tell it before 9 pm 19 march

1658