Hello - Per the OCA Java SE 8 Programmer I Study Guide, on page 145, it states that the performAnimalEnrichment() "method can't be reused" because it is not using the Period class. I ran both examples and I do not see the difference in the outputs when I ran the code below. I must be missing something, would someone please explain why the first example on page 145 can't be used?
The comment about reuse is for if you want to change the number of months. If you want to change 1 months to three, you don't have to change the method that takes a Period as a parameter. And that's good reuse.
This feels trivial because everything is in one class. But pretend it wasn't. If another developer/team wrote the method and gave it to you inside a jar file, it wouldn't be so easy to change the method insides.