subject

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.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, lovely90
How do i draw hello world in python and how do i make it loop?
Answers: 3
image
Computers and Technology, 22.06.2019 11:30, KrishnaBalaram1235
To hide gridline when you display or print a worksheet
Answers: 1
image
Computers and Technology, 24.06.2019 17:30, leenzazou98241
What is the next step if your volume does not work on computer
Answers: 2
image
Computers and Technology, 24.06.2019 18:00, janeou17xn
Which of the following is an example of synchronous communication? a) e-mail b) voicemail c) telephone conversation d) text message.
Answers: 1
You know the right answer?
What error, if any, is in the following code?

public class Test {
private int nu...

Questions in other subjects:

Konu
Mathematics, 15.10.2019 17:00
Konu
Biology, 15.10.2019 17:00
Konu
Mathematics, 15.10.2019 17:00