[SOLVED] CS150 Lab 27/28

25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Labs-27-and-28-1ig504.zip (528.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (4 votes)

Create classes CatRecord, DogRecord and BirdRecord that inherit from (extend) the PetRecord class located on Canvas.

Add an integer variable wingspan to BirdRecord, and a Boolean variable hasLongHair to CatRecord and DogRecord. Create appropriate setter and getter methods for each. Also, create constructors that can set all of the values for a cat, dog or bird by setting the values specific to that animal.

Create a main to test out your work and show that your new classes work correctly. Do NOT modify the PetRecord class.

  • Labs-27-and-28-1ig504.zip