Q:

Which among the following is best situation to use upcasting?

0

Which among the following is best situation to use upcasting?


  1. For general code dealing with only subtype
  2. For general code dealing with only supertype
  3. For general code dealing with both the supertype and subtype
  4. For writing a rigid code with respect to subtype

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(b).For general code dealing with only supertype

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OVERLOADING MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which property is shown most when upcasting is use... >>
<< Which among the following is safe?...