One of the requirements is that you have to pass a generic getWeight to SumWeights somehow. Imagine that there are multiple different implementations of getWeight that all have the same type signature. How do you tell SumWeights which version to use?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One of the requirements is that you have to pass a generic
getWeighttoSumWeightssomehow. Imagine that there are multiple different implementations ofgetWeightthat all have the same type signature. How do you tellSumWeightswhich version to use?