1. Consider a class called Person that has two data fields, one for the person’s name and one for the person’s age.
Write two constructors for this class. The implementation of one constructor should invoke the other.
2. Repeat the previous exercise, but replace the three named constants with an enumeration named SpeedChoice.
Also change the data type of the field speed from int to SpeedChoice.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here