Question: Computer games often contain different characters or creatures. For example, you might design a game in which alien beings possess specific characteristics such as color,
Computer games often contain different characters or creatures. For example, you might design a game in which alien beings possess specific characteristics such as color, number of eyes, or number of lives. Design a character for a game, creating a class to hold at least three attributes for the character. Include methods to get and set each of the character’s attributes. Save the file as MyCharacter. java. Then write an application in which you create at least two characters. In turn, pass each character to a display method that displays the character’s attributes. Save the application as TwoCharacters.java.
Step by Step Solution
3.45 Rating (181 Votes )
There are 3 Steps involved in it
MyCharacterjava public class MyCharacter private int age private int numberOfLegs private int number... View full answer
Get step-by-step solutions from verified subject matter experts
