In the constructor for the ArrayBag class shown below, what is the missing code?
def __init__(self, sourceCollection = None): AbstractBag.__init__(self, sourceCollection)

A. items.add(self)
B. self.items = Array(ArrayBag.DEFAULT_CAPACITY)
C. self.items = ArrayBag.add(sourceCollection)
D. add.items(self, sourceCollection)


Answer: B

Computer Science & Information Technology

You might also like to view...

The Utility menu included with many inkjet printers provides a variety of diagnostic tools. The ______ utility is used to correct misaligned vertical straight-line or large characters

a. Status or ink monitor b. Nozzle check c. Head cleaning d. Print head alignment

Computer Science & Information Technology

Elements are organized as pages of a book or a stack of cards in a(n) ____________________ authoring system.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What are the four Perry Levels of Intellectual Maturity?

What will be an ideal response?

Computer Science & Information Technology

How does the iSCSI target server make storage available to iSCSI initiators?

What will be an ideal response?

Computer Science & Information Technology