public static double secret(int first, double second)
{
double temp;
if (second > first)
temp = first * second;
else
temp = first - second;
return temp;
}

Which of the following is NOT part of the heading of the method in the accompanying figure?
a. public
b. static
c. secret(int first, double second)
d. double temp;

Respuesta :

Answer:

d. double temp;

Explanation:

Given

The above code segment

Required

Which is not part of the method definition

The method in the above program is:

public static double secret(int first, double second)

Looking through the options, we can conclude that:

d. double temp;

..... is not a part of the method