Explore BrainMass
Share

Java programmers and class hierarchies

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here:

See attached file for full problem description.

© BrainMass Inc. brainmass.com October 24, 2018, 8:48 pm ad1c9bdddf
https://brainmass.com/computer-science/trees/java-programmers-and-class-hierarchies-108318

Attachments

$2.19
See Also This Related BrainMass Solution

Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see in the attachment:

For this learning event, you should develop a similar class hierarchy for Plants. You can have whatever subclasses you think would be useful, but your hierarchy should have at least three levels (the top class, Plants, counts as the first level). Include variables and methods (at least one of each) for each class you design, as in the above example.

View Full Posting Details