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...


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.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here