, , , ,

[SOLVED] Cs150 – lab 27/28 (counts as two labs)

$25

File Name: Cs150_____lab_27_28__counts_as_two_labs_.zip
File Size: 376.8 KB

5/5 - (1 vote)

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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Cs150 – lab 27/28 (counts as two labs)[SOLVED] Cs150 – lab 27/28 (counts as two labs)
$25