Question: Within the Lab 2 pm . java class, the starter code creates an array of GeoShape objects with initializing values. Inside this main ( )

Within the Lab2pm.java class, the starter code creates an array of GeoShape objects with
initializing values. Inside this main() method, read the comments and code showing 3 objects
created using Polymorphism (Circle, Rectangle, Hexagon) using initial values.
ONLY change to main() is replace my name with your name.
Inside Circle, Rectangle, and Hexagon are instructions. Each of these inherit the GeoShape
object. Each has its own unique formula to compute the area and perimeter (circumference) for
each shape. A website is given to find the regular hexagon area computation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!