Java Java Objects Harnessing the Power of Objects Filling the Dispenser

Duy Nguyen
Duy Nguyen
582 Points

Why do we not want to return pez count and use void

Why do we use void, I thought we want to return pezcount

1 Answer

Antonio De Rose
Antonio De Rose
20,857 Points

that is based on the requirement, if the requirement does not need anything in return, it would simply return nothing by using void.