xen2676 0 Newbie Poster

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)
}

}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.