X910: Writing Constructors 2

For this question we will be working with a constructor for a new Jeroo child class called TestingJeroo

public class TestingJeroo extends Jeroo
{
    public int age;
    public int socialSecurityNumber;
}

This time, our TestingJeroo class has two instance variables. One to track the jeroo's age and one that stores its social security number.

Below is a constructor signature that takes in no parameters. Change this to a constructor that takes in two integer variables: one called a and one called ssn.

Note, for this question you only need to change the parameter list.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.