1. Assume that the following method is a member of a class. Find the error.
public void total(int value1, value2, value3)
{
return value1 + value2 + value3;
}
2. The following statement attempts to create a Rectangle object. Find the error.
Rectangle box = new Rectangle;
3. Find the error in the following class:
public class TwoValues
private int x, y;
public TwoValues()
x = 0;
y = 0;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here