1. Write the statement that calls a superclass constructor and passes the arguments x, y, and z.
2. A superclass has the following method:
public void setValue(int v)
{
value = v;
}
Write a statement that may appear in a subclass that calls this method, passing 10 as an argument.
3. A superclass has the following abstract method:
public abstract int getValue();
Write an example of a getValue method that can appear in a subclass.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here