Multiple Choice
When implementing the __init__ method in the AbstractBag class, what task should you leave out because it is the responsibility of the subclasses?
A) setting the self.size variable to 0
B) adding items from the source collection
C) initializing the self.items variable
D) checking if a source collection exists
Correct Answer:

Verified
Correct Answer:
Verified
Q40: When considering the ArrayBag class and the
Q41: What is one of the primary purposes
Q42: A class that uses lists can use
Q43: An instance variable that refers to an
Q44: When creating the AbstractCollection class, which methods
Q45: In which situation is a search unnecessary
Q46: A class that inherits properties from another
Q47: When a programmer calls the next function
Q49: How is creating a subclass of an
Q50: Which of the following is true about