Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java simple as possible, please 1. Create a shape abstract class with the following methods and instance variables: Instance Variables for: length, width, height o
Java
simple as possible, please
1. Create a shape abstract class with the following methods and instance variables: Instance Variables for: length, width, height o Default constructor and a constructor that takes in all instance variables o public double getLength() o public double getWidth() o public double getHeight() o public doublesurfaceAreal) Should update when the length or width is changed public double volumel) Should update when the length or width is changed o public String toString() Should print all instance variables in text form! 2. Create 2 classes that use the Shape abstract class o Some suggestions: Square, Rectangular Prism, Cylinder, Circle, Cone o Must have one additional unique instance variable . Must have one additional unique method oStep 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