Question: . 1 Create a Matching class with the following attributes String: first Word String: second Word Int: count 2. Your class should contain the following

 . 1 Create a Matching class with the following attributes String:

. 1 Create a Matching class with the following attributes String: first Word String: second Word Int: count 2. Your class should contain the following methods A private void method match, which will count how many letters are common between the first Word and the second Word and then modify the count attribute. This method must be invoked by ALL constructors A default constructor which sets first Word and second Word to null and count to zero. A copy constructor A constructor with 3 arguments and assign the passed values to the corresponding parameters, Mutator and accessor methods . . The equals() method to return true if the value of the 3 attributes being compared ure the same and false otherwise, . The toString() method. Submission: Once you are done

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!