Question: a ) [ 1 0 pts ] Define a FuelType enum with values for different fuel types such as Gasoline, Diesel, Electric. b ) [
a pts Define a FuelType enum with values for different fuel types such as "Gasoline", "Diesel", "Electric".
b pts Implement the classes below with the following instructions:
equals compares two objects based on the field values: If they match, it returns true; if not, false
toString prints out the fields of the class.
Make sure methods usereturn a deep copy of the Engine object not a reference copy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
