Answer to Question #58997 in Java | JSP | JSF for Peter
+ getName() : String
+ getCatchPhrase(): String
+ setCatchPhrase(String): void
+ sayCatchPhrase(): void
Create another class CartoonApp.java to instantiate each of the following characters..
Character name: Catch phase:
Bart Simpson Eat my shorts!
Yogi Bear I’m smarter that the average bear!
Buzz Lightyear To infinity and beyond!
Tweety Pie I tought I taw a puddy tat!
For each of the character objects set the appropriate instance variables, e.g. for the Bart character set the name to Bart Simpson and the catchPhase to Eat my shorts. For each character object in turn call the sayCatchPhrase method which should output to screen <name> says <catchPhrase>
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!