I have to write a class names Hexagon that extends the superclass GeometricObject. This is what I have could anyone help me pleas?
public class Hexagon extends GeometricObject{
private double side;
/**Construct a no args constructor with a defaukt side*/
public Hexagon(){
//Implement it
}
/**Construct a Hexagon with the specified side*/
public Hexagon(double side) {
//Implement it
}
/*Implement the method findArea ()
/*
public double findArea () {
// Implement it (area = 3 * square root 3 * side * side )
}
//Implement the method findPerimeter in */
public double findPerimeter () {
//Implement it (perimeter = side *6)
}
}
}