

MCQOPTIONS
Saved Bookmarks
1. |
Which among the following is best situation to use upcasting? |
A. | For general code dealing with only subtype |
B. | For general code dealing with only supertype |
C. | For general code dealing with both the supertype and subtype |
D. | For writing a rigid code with respect to subtype |
Answer» C. For general code dealing with both the supertype and subtype | |