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

wht is the diff. b/n initialization and lotus of event

1672


What are the different types of view?

844


1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?

1745


What are Table control and tab strip control in dialog programming ?

5491


Define dispatcher?

1048


Define database layer?

822


What is an update type with reference to a match code id?

773


What are the modes in lock objects? : sap abap data dictionary

793


What are the basic components of dialog program?

941


Can we handle two transaction codes in the same program using call transaction bdc input method? : abap bdc

880


What are the different buffering methods?

794


What is the difference between skip and reserve?

858


What is the function of a data element?

842


What are the field and chain statements?

796


What are the disadvantages of different types of bdc's?

868