Question: Write a class named Octagon whose objects represent regular octagons (eight-sided polygons). Your class should implement the Shape interface defined in this chapter, including methods
Write a class named Octagon whose objects represent regular octagons (eight-sided polygons). Your class should implement the Shape interface defined in this chapter, including methods for its area and perimeter. An Octagon object is defined by its side length. (You may need to search online to find formulas for the area and perimeter of a regular octagon.)
Step by Step Solution
3.49 Rating (159 Votes )
There are 3 Steps involved in it
public class Octagon implements Shape private double sideLen... View full answer
Get step-by-step solutions from verified subject matter experts
