Menu

[Solved]-Question 2 20 Points Write Class Named Hexagon Extends Geometricobject Following Specifica Q37277104

Just want to be sure, if I’m right , if not, update itplease
Question 2: [20 points] Write a class named Hexagon that extends Geometricobject and has the following specifica- tion. AssumIp pyjava Hexagonjava3 Arraylistjava Programmerjava Feline java DuplicatejavaelominateDup. public class Hexagon extends GeomQuestion 2: [20 points] Write a class named Hexagon that extends Geometricobject and has the following specifica- tion. Assume all six sides of the hexagon are of equal size. public class Hexagon extends Geometricobject( private double side; / Construct a Hexagon vith the specified side / public Hexagon (double side) ( // Implement it /* Implement the abstract method findArea in Geometricobject public double findArea) t // Implement it ) /Implement the abstract method findPerimeter in Geometricobject . public double findPeriseter) ( // Implement it Ip pyjava “Hexagonjava3 Arraylistjava Programmerjava Feline java DuplicatejavaelominateDup. public class Hexagon extends Geometricobject t private double side1,side2,side3,side4, side5,side6; public Hexagon (double side1,double side2,double side3, double side4, double side5, double side6) this.side1-side1; this.side1-side2; this.side1-side3; this.sidel-side4; this.side1-side5; this.side1-side6; double findArea abstract double findArea(); public double findPerimenter)t abstract double findPerimeter); Javadoc Declaration Console3 Problems consoles to display at this time. Show transcribed image text Question 2: [20 points] Write a class named Hexagon that extends Geometricobject and has the following specifica- tion. Assume all six sides of the hexagon are of equal size. public class Hexagon extends Geometricobject( private double side; / Construct a Hexagon vith the specified side / public Hexagon (double side) ( // Implement it /* Implement the abstract method findArea in Geometricobject public double findArea) t // Implement it ) /Implement the abstract method findPerimeter in Geometricobject . public double findPeriseter) ( // Implement it
Ip pyjava “Hexagonjava3 Arraylistjava Programmerjava Feline java DuplicatejavaelominateDup. public class Hexagon extends Geometricobject t private double side1,side2,side3,side4, side5,side6; public Hexagon (double side1,double side2,double side3, double side4, double side5, double side6) this.side1-side1; this.side1-side2; this.side1-side3; this.sidel-side4; this.side1-side5; this.side1-side6; double findArea abstract double findArea(); public double findPerimenter)t abstract double findPerimeter); Javadoc Declaration Console3 Problems consoles to display at this time.

Expert Answer


Answer to Question 2: [20 points] Write a class named Hexagon that extends Geometricobject and has the following specifica- tion. … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *