Multiple choice technology programming languages

Advantage of using polymorphism in class diagrams is a reduction of

  1. methods in the associated classes

  2. subclasses needed to accomplish the same functionality

  3. case statements and conditionals

  4. coupling between classes in the system

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Polymorphism's key advantage is replacing conditional logic (case/switch statements and if-else chains) with dynamic dispatch through virtual functions. Instead of checking type and executing corresponding code, polymorphism lets each subclass implement its own behavior, invoked through a common interface. This reduces conditional complexity.