Question
Can someone help me code the following project in JAVA? I'm a little confused, and would appreciate slashes to help me follow along as you
Can someone help me code the following project in JAVA? I'm a little confused, and would appreciate slashes to help me follow along as you go through the code.
Design a 3-level hierarchy of entities of your choosing. An example is: (if you want to use this to help me, go ahead)
All classes in the upper two levels should be abstract.
The uppermost class should include:
-
Minimum 2 data fields
-
Accessor methods for data fields
-
A constructor to initialize the data fields
-
Minimum 1 abstract method
The mid-level classes should include at least one constructor.
The lowest subclasses should include at least one constructor and implement the abstract method from the highest class.
Please write a minimum of 6 classes (1 upper, 2 mid, 3 lower).
**You do NOT have to write a driver for this lab.
Here is an example of what the uppermost class in the hierarchy could look like:
Animal Mammal Crustacean Rabbit Kangaroo Crab Barnacle
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started