CS计算机代考程序代写 Java package uk.ac.liv.comp285.cw1.shapes;

package uk.ac.liv.comp285.cw1.shapes;

import java.awt.Graphics;

import uk.ac.liv.comp285.cw1.Shape;

public class RegularPolygon extends Shape {

public RegularPolygon(int sides, Point centre, float radius) {
super();
this.sides = sides;
this.centre = centre;
this.radius = radius;
}
/**
* How many sides to the polygon
*/
private int sides=0;
/**
* Centre of polygon, this represents the centre of the smallest circle which would contain the polygon
*/
private Point centre;
/**
* Size of the polygon defined as the radius of the centre of the smallest circle which would contain the polygon
*/

private float radius;
@Override
public float getArea() {
// TODO Auto-generated method stub
return 0;
}
@Override
public Point getLowerLeftPoint() {
// TODO Auto-generated method stub
return null;
}
@Override
public Point getUpperRightPoint() {
// TODO Auto-generated method stub
return null;
}
@Override
public void render(Graphics g) {
// TODO Auto-generated method stub

}

}