Ask Question
16 March, 02:00

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.

+1
Answers (1)
  1. 16 March, 02:18
    0
    Shajsjsjsjsisisiaisisi
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What error, if any, is in the following code? public class Test { private int num; private void setNum (int n) { num = n; } } a. setNum ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers