Define a class called Animal with the following data attributes:
Desc:array of 20 characters
Height: float
Weight: Float
Define a class Bird that inherits from Animal class above with the following attributes:
Wingspan:float
You program should be able to store up to 10 BirdRec records in an array called BirdsArray.
Your program should at least perform the below operations:
-Add new bird records into BirdsArray
-Display all Birds' records
-Display the bird details with the largest winspan
-Display the bird details with the smallest winspan
Requirement:
Your program should apply the concepts of class, array of objects and inheritance.
I do my coursework till half way and i really cant afford it, please help me, it's insufficient of space for me to paste my effort..
2006-11-11
18:17:25
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design