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: 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
Get step-by-step solutions from verified subject matter experts
