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>
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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment