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

Osmosis and Diffusion are different because: A. only Diffusion occurs across a cell membrane. B. diffusion may lead to lysis or crenation. C. diffus
What are four common signs that might be found in a medical office waiting room?
Growing sugar beets for sugar, as an alternative to importing sugar made from sugar cane, is an example of
AREA ADDITION AND SUBTRACTION URGENT?
Find the length of an arc with a radius of 6.0m swept across 2.5 radians.
which fact about transmutation is not true
How to say had painted many great paintings in spanish?
Como se llama la canción que dice no hay motivo para decirnos adios tan pronto
GEOMETRY HELP! once again I need help...sorry guys I just suck at Geometry. It’s not my favorite.
Depending on the incident size and complexity, various types of support facilities may be established by: