Question: This is the tester code for the MascaraList class. Just the MascaraList in java MascaraList ?? +?? +add Mascara Mascara): void +toString(): String Mascara for

 This is the tester code for the MascaraList class. Just theMascaraList in java MascaraList ?? +?? +add Mascara Mascara): void +toString(): String

Mascara for ShortLashes: boolean forThin Lashes: boolean for StraightLashes: boolean -waterproof: boolean-brand: String +Mascara(String, boolean, boolean, boolean, boolean) +setInfo(boolean, boolean, boolean, boolean): void

+getBrandName(): String +isForShortLashes(: boolean +isFor Thinlashes(): boolean +isForStraightLashes(): boolean +isWaterproof(): boolean +getInfo():

String +toString(): String Volumizing Mascara LengtheningMascara +VolumizingMascara(String, boolean) +isForShortLashes(): boolean +isForThin Lashes():boolean +isForStraightLashes(): boolean CurlingMascara #specialApplicator: String +Curling Mascara(String, boolean, String) +CurlingMascara(String, boolean)

+needsSpecialApplicator(): boolean +getinfo: String +toString(): String +Lengthening Mascara(String, boolean) +needs MultipleCoats(): boolean

This is the tester code for the MascaraList class.

Just the MascaraList in java

MascaraList ?? +?? +add Mascara Mascara): void +toString(): String Mascara for ShortLashes: boolean forThin Lashes: boolean for StraightLashes: boolean -waterproof: boolean -brand: String +Mascara(String, boolean, boolean, boolean, boolean) +setInfo(boolean, boolean, boolean, boolean): void +getBrandName(): String +isForShortLashes(: boolean +isFor Thinlashes(): boolean +isForStraightLashes(): boolean +isWaterproof(): boolean +getInfo(): String +toString(): String Volumizing Mascara LengtheningMascara +VolumizingMascara(String, boolean) +isForShortLashes(): boolean +isForThin Lashes(): boolean +isForStraightLashes(): boolean CurlingMascara #specialApplicator: String +Curling Mascara(String, boolean, String) +CurlingMascara(String, boolean) +needsSpecialApplicator(): boolean +getinfo: String +toString(): String +Lengthening Mascara(String, boolean) +needs MultipleCoats(): boolean +isForShortLashes: boolean +isForThinlashes(): boolean +isForStraightLashes(): boolean +getinto): String Fiber Mascara +FiberMascara(String, boolean) +doubleStacked(): boolean +getInfo(): String Mascara forShortLashes: boolean -forThinLashes: boolean -for StraightLashes: boolean -waterproof: boolean -brand: String +Mascara(String, boolean, boolean, boolean, boolean) +setInfo(boolean, boolean, boolean, boolean): void +getBrandName(): String +isForShortLashes(): boolean +isForThinLashes(): boolean +isForStraightLashes(): boolean +isWaterproof(): boolean +getInfo(): String +toString(): String Constructor: brand is used to uniquely identify a mascara brand, while the remaining parameters all represent different uses of a mascara: if forShortLashes is true, the mascara is best for short lashes; if forThinLashes is true, the mascara is best for thin lashes; if for StraightLashes is true, the mascara is best for straight lashes; if waterProof is true, the mascara is water proof. A void method called setInfo for setting the information after object creation with the parameter list: boolean forShortLashes, boolean forThinLashes, boolean for StraightLashes, boolean waterproof. A getter called getBrandName for the brand. We do not need a setter because we do not expect to change the brand after it is set. Methods isForShortLashes(), isForThinLashes(), isForStraightLashes(), is Waterproof(), each of which take no parameters and return boolean. These methods indicate which lash types the mascara is good for. These might be redefined in subclasses, but for now, each of these methods should return whatever the boolean attributes were set to. A getInfo method that takes no parameters and returns a String containing each of the features of the mascara separated by spaces. For example, if isForShortLashes() is true only, the string will return: Short Lashes. If isForShortLashes() and isForThin Lashes() is true, the string returned is: Short Lashes Thin Lashes. If all of them are true, the string will return: Short Lashes Thin Lashes Straight Lashes +Water Proof {may clump during application, require more time to dry} *As you can see if is Waterproof is true, the string is a little longer. Pay attention to the exact string returned. If none of them return true, the empty string should be returned (""). NOTE: in order for this method to work correctly for subclasses, you should use the previously defined isForShortLashes(), isForThinLashes(), isForStraightLashes(), isWaterProof() methods rather than access any data members directly. A toString method which returns a String in the format "Brand: , Good For: , Good For:

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!