Question: Project # 2 : Determine Big Cat group. Instructions: Create a BigCat class. Include at least three protected data members ( traits ) of your

Project #2: Determine Big Cat group.
Instructions:
Create a BigCat class.
Include at least three protected data members(traits) of your choice such as the color of the BigCat.Include a constructor that requires a value for each data field and a toString() method that returns a String containing a complete description of the BigCat.Save the file as BigCat.java.
Create two classes.
Select 2 from the list to create your classes (Tiger, Lion, Panther, Leopard),that descend(inherit) from Big Cat. Supply each with a constructor that sets the Big Cat data fields with values you choose. For example, you can decide that a Tiger is orange but a Panther is black. Save the files with BigCat name you selected for example Tiger.java and Panther.java
Create an application that instantiates each of the classes. Call the toString() method with each object and display the results. Save the application as CreateBigCat.java.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!