[Solved]62 Make Following Improvements Updates Class Created 61 Use Reference Getter Setter Method Q37232868
6.2 Make the following improvements/updates to your class youcreated in 6.1
- Use the this reference for all your getter andsetter methods
- Use the this reference in your paremeterizedconstructor
- Make your default constructor call the parameterizedconstructor using the this() method
- Add a public static field called counter to your class. Thiscounter variable should be inialized to 0, and incrementedeverytime an object is created
- Override the toString() method to return aString representation of your object.(One string containing all theobject’s data) Test this method out in the main method
- Override the equals() method. The methodshould return true if the calling object has the same values forall fields of the object in the parameter, and false otherwise.This this out in the main method.
- Create a copy constructor, where you can pass a object, and theconstructor will copy all the data of the fields into the newobject. Test this out in the main method.
Expert Answer
Answer to 6.2 Make the following improvements/updates to your class you created in 6.1 Use the this reference for all your getter … . . .
OR

