Create an application that instantiates one martian and one


a. 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. Create an Alien class. Include at least three data members of your choice. Get and set methods for each field.

b. Create two classes-Martian and Jupiterian-that descend from Alien. Supply each with methods that
override the Alien set methods to force Martian and Jupiterian object data fields with default values of your choice. For example, you can decide that a Martian has four eyes but a Jupiterian has only two.

c. Create an application that instantiates one Martian and one Jupiterian and set and display their data.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create an application that instantiates one martian and one
Reference No:- TGS01474339

Expected delivery within 24 Hours