When is the downcasting used?
(a) To separate inherited class from base class
(b) To write a more complex code
(c) To compare two objects
(d) To disable one class in inheritance
I have been asked this question during a job interview.
I'm obligated to ask this question of Downcasting in section Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming