Does passing an aggregate object instead of a long argument list of objects reduce data coupling
问题 I read that data coupling can be reduced by "not passing unnecessary arguments" Say there is a makeCake method which requires many instance variables in the Ingredients class as parameters: makeCake(ingredients.flour, ingredients.egg, ingredients.sugar, ingredients.cheese, ingredients.cream) And instead of this, just pass the whole Ingredients Object makeCake(ingredients) and access the variables within the makeCake method.. Is this counted as reducing coupling between the class which calls