Skip to content
Snippets Groups Projects
Commit 36398a0b authored by BENHILA Douaa's avatar BENHILA Douaa
Browse files

add method point ()

parent efc85b31
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,14 @@ import java.util.List;
public abstract class shape implements shape{
private List<Point2D> points ;
abstract public Point2D addPoints(point);
abstract public List<Point2D> addPoints(Point2D point);
abstract public int pointsCount();
public Point2D point(int index){
for(int i =0;i.points.length;i++){
System.out.println(points[i]);
points[i]=index;
}
return index;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment