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

add method pointsCount

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