Muhammad A.

asked • 06/28/21

Implement the animal class hierarchy given here

Implement the animal class hierarchy given here in java programing cod...

animal (Class)
----------------------------
+ age: Integer
+ gender: String
----------------------------
+ ismamal ()
+ mate ()
Duck (Class)
----------------------------
+ beakColor: String = "yellow"
----------------------------
+ swim ()
+ Quck ()
fish (Class)
----------------------------
- sizeFish: Integer
- caneat: Boolean
----------------------------
- swim ()


For zebra
Zebra (Class)
----------------------------
+ is_wild: Boolean
----------------------------
+ run ()


1 Expert Answer

By:

Patrick B. answered • 06/28/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.