Question: issignment In this assignment, you will refactor a part of the immutable Word class and implement some new behaviors in it. Be sure you address
issignment In this assignment, you will refactor a part of the immutable Word class and implement some new behaviors in it. Be sure you address and correct all the problems that I identified on your Part I submission. You do not want to lose the same points again. One of the goals of this class is to make you better programmers. You need to adopt new idea and techniques in order to improve. The review problems sets were designed to introduce you these techniques- particularly concatenation and the String methods substring, charAt, length and indexOf I expect you to use these when appropriate to the problem and, in nearly all cases String processing, they are appropriate Try to use the methods that you already wrote to make the implementations of other methods easier. Often, an overloaded method with fewer parameters can simply call an overloaded method with more parameters. Remember to error check parameters. You may not make any additions, changes, or deletions to the UML The new methods are show at the bottom of the UML Word word:String Word in word:String getwordo:String numberOlCharacten): int numberoiConsanantsD: Int interface comporeTofin other:Word) int : int gotetterSett): String usesSamelettersAsin other: Word): boolean cetoccurrenceCountlin target: char): int containstin other:Word):boolean toString):Stint Tofin other: Word): int -count Thesetin characters:Suring) int other Word): boolean sSuffiain other: Word): boolean elongestMatchingPrefiafin matchThis: Word): Stuing concatenatelin other Word):Word concatenateln other:Wordlh:Ward CISC 230 Object Oriented Design and Programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
