In the first way, you create a ScheduleFactory
with a specific V
and T
, and thereafter that factory object can only return Schedule<V, T>
.
In the second way, you create a ScheduleFactory
object, and that single factory object can then create Schedule<V, T>
for different V
s and T
s each call.