What methods is this heating strategy going to call on water and stove? Consider for example that the stove builds up rust. Therefore it needs to know the properties of what's inside. Is the heating strategy going to…
What (from a code organization perspective) might work better in practice is: water.heat(stove); because it's the water that's being changed and change should be encapsulated. On the other hand, the stove may also…
What methods is this heating strategy going to call on water and stove? Consider for example that the stove builds up rust. Therefore it needs to know the properties of what's inside. Is the heating strategy going to…
What (from a code organization perspective) might work better in practice is: water.heat(stove); because it's the water that's being changed and change should be encapsulated. On the other hand, the stove may also…