Cannon5356 Cannon5356
  • 12-03-2020
  • Computers and Technology
contestada

What error, if any, is in the following code?

public class Test {
private int num;
private void setNum(int n) {
num = n;
}
}


a. setNum should have no parameter.
b. setNum must be public.
c. setNum should return int, not void.
d. Code is correct as is.

Respuesta :

hhahyyaha
hhahyyaha hhahyyaha
  • 12-03-2020
Shajsjsjsjsisisiaisisi
Answer Link

Otras preguntas

what are 3 statements you can say about the fraction 3/4
Ellos no __________ las palabras en clase
David says you can have an unlimited number of equivalent fractions to any given fraction. Is he right?
which best describes the influence of Issac Newton's theory of universal gravitation? a. it require the creation of analytical geometry b. it demonstrates the
what adds the element carbon to the enviroment
How did the inca adapt to their physical environment?
An example of a cabinet department is the
how did tensions in europe lead to war
The French and Indian war was between _____ and ______.
After making a deposit, puja had $264 in her savings account. She noticed that if she added $26 to the amount originally in the account and doubled the sum, she