68 369
Assignments Done
98,7%
Successfully Done
In November 2018

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>
Expert's answer

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions