When Is The Downcasting Used #1244
When is the downcasting used?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Default Arguments vs Overloading, Upcasting and Downcasting - OOPs MCQ: Downcasting - Quiz No.2.
When is the downcasting used?
To separate inherited class from base class
To write a more complex code
To compare two objects
To disable one class in inheritance