Upgrade to access all content for this subject
For which of the following situations would it be recommended to create a method that does not return a value (i.e. the method has a void return type)?
The method's only function is to update class variables
The class does not store any data and the private method’s purpose is to calculate a tax rate
The method is only called from within the class it is defined
The method is a global function that takes a parameter and multiplies it by a quantity
The method can provide a variety of results