X930: Constructors With Fields 2

For this question we will be working with a constructor for a the TestingJeroo class again

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

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

Below is a constructor that takes in two parameters int a and int ssn

Assign a to the instance variable age, and ssn to socialSecurityNumber.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.