Read the code provided above. Imagine that the developer extracts the side-ef...
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Read the code provided above. Imagine that the developer extracts the side-effect actions out of the conditional blocks entirely and delegates them directly to an incoming item object parameter by executing item.applyPowerUpEffect(this). What core object-oriented benefit is achieved by shifting from string checking to this style of object delegation?