Question 3 0/1 pts How does the Template Method design pattern enable subclasses to customize some steps of an algorithm implemented in the superclass? It uses a private constructor for those steps. OIt delegates some steps to methods that are overridden in subclasses. It overrides the public method of the superclass and implements the same algorithm but changes the instructions for specific steps.
Incorrect Question 3 What's the purpose of the iterator() method? It implements the algorithm to iterate over a collection. It returns the collection that can be iterated over. O None of these. OIt creates a new instance of an iterator class. 0/1 pts
Incorrect Incorrect Question 3 0/1 pts How does the Template Method design pattern enable subclasses to customize some steps of an
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am