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 item marked 1 in the accompanying figure is the wave's ____.

A. amplitude B. sample rate C. frequency D. resolution

Computer Science & Information Technology

The star in the accompanying figure was most likely sliced with triangles.

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

Computer Science & Information Technology