QuestionQ81
Object-Oriented ProgrammingWhich of the following code lines will work correctly when placed independently inside the add_new() method so that the snippet outputs [0, 1, 2]?

Choose two
- A self.queue.append(self.queue[-1] + 1)
- B self.queue.append(self.get_last() + 1)
- C self.queue.append(get_last() + 1)
- D queue.append(self.get_last() + 1)
Community Discussion