How to do it:
-
Identify the change point and determine the sprouted class interface.
-
Pass to the sprouted class’s constructor any source method’s local variables it needs as parameters.
-
Determine whether the sprouted class’ method will need to return values to the source method.
-
-
Develop the sprouted class with tests.
-
Instance the sprout class and call its method from the source method.