Downcasting ____________________ A. Can result in unexpected

downcasting-a-can-result-in-unexpected

Downcasting ____________________

A. Can result in unexpected results

B. Can’t result in unexpected result

C. Can result only in out of memory error

D. Can’t result in any error

I have been asked this question during an interview for a job.

The query is from Downcasting topic in portion Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming

Right option is A. Can result in unexpected results

To explain: The result of downcasting can be unexpected. This is because downcasting is done on the objects into the objects which doesn’t contain any information of data in lateral object.