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
getWeight
toSumWeights
somehow. Imagine that there are multiple different implementations ofgetWeight
that all have the same type signature. How do you tellSumWeights
which version to use?