Given the following task, which would be the most appropriate method heading?
Results have been calculated for taxAmount and totalSales. Write a
method heading that accepts these values as input for display purposes.
a. public static DisplayResults( )
b. public DisplayResults(double)
c. public static void DisplayResults( )
d. public static void DisplayResults(double taxAmount,
double totalSales)
e. public static void DisplayResults(taxAmount, totalSales)
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.