![lexieprochaskaaa](/avatars/47053.jpg)
lexieprochaskaaa
13.03.2020 •
Computers and Technology
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.
Solved
Show answers
More tips
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
Answers on questions: Computers and Technology
- M Mathematics I need to know if 198 to 1287 and 2 to 13 are equivalent ratios...
- M Mathematics This table displays a scenario. A 2-column table with 6 rows. Column 1 is labeled Quarts, q with entries 1, 2, 3, 4, 5, 6. Column 2 is labeled Liters, l with entries 0.95,...
- A Arts Wanna chat i am 10 years old...
- M Mathematics Solve the equation with steps -1/4 (-8x-6) = -4(x-3)...
- M Mathematics Does the linear equation y=2x represent a proportional relationship...
- M Mathematics If f(x) =-x^2+2x find f (3) -7...
- M Mathematics How would you find the length of a line segment connecting two dots...
- A Advanced Placement (AP) Develop an argument whether the expanded powers of the national government benefits or hinders policy making...
- M Mathematics Write each fraction as a decimal. Determine if the decimal is a terminating decimal. 1: 23/50 2: -11/40 3: 7/32...
- E English Hannah wrote the paragraph below about human errors that were made during the Chicago fire of 1871. Which quotation from Jim Murphy s The Great Fire could Hannah add to make...
Ответ:
Depends on whats wrong with it
Explanation: