Problems using switch logic to deal with many objects of different types do not include:

a. Forgetting to include an object in one of the cases.
b. Having to update the switch statement whenever a new type of object is added.
c. Having to track down every switch statement to do an update of object types.
d. Not being able to implement separate functions on different objects.


d. Not being able to implement separate functions on different objects.

Computer Science & Information Technology

You might also like to view...

The identifiers in an enumeration ________.

a. must be unique. b. may be duplicated. c. must be lowercase letters and cannot contain numbers. d. must be uppercase letters and cannot contain numbers.

Computer Science & Information Technology

Given the list elements and contents below. Which type of list collection could be used to represent them? Explain your choice.


What will be an ideal response?

Computer Science & Information Technology

Use a(n) ________ to format titles, headings, and paragraphs at one time

Fill in the blank(s) with correct word

Computer Science & Information Technology

Traditionally, lists are implemented using either arrays or pointers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology