Answer to Question #58997 in Java | JSP | JSF for Peter

Question #58997
Question: Create the following class to represent a cartoon character in an application.

CartoonCharacter
- name
- catchPhrase
+ CartoonCharacter()
+ getName() : String
+ setName(String):void
+ 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>
1
Expert's answer
2016-04-08T08:51:04-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-58997.pdf

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS