Why Is Downcasting Possible In Any Language #1245
Why is downcasting possible in any language?
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.
Why is downcasting possible in any language?
Because inheritance follows has-a relationship
Because inheritance follows is-a relationship
Because inheritance doesn’t follow any relationship
Because inheritance is not involved in casting