Create an inheritance hierarchy for farm animals with the abstract parent class animal, at least three child classes, and 1 interface. Note, you should include an abstract method in animal that is defined in the child classes, and one abstract method in the interface that is implemented. (This is not a program, it should resemble UML as best as it can)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

JAVA PLEASE

Create an inheritance hierarchy for farm animals with the abstract parent class animal, at least three child classes, and 1 interface. Note, you should include an abstract method in animal that is defined in the child classes, and one abstract method in the interface that is implemented. (This is not a program, it should resemble UML as best as it can).

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT