Question: How to do this on JAVA ? MyTriangle MyPoint -v1:MyPoint -v2:MyPoint -v3:MyPoint +MyTriangle(x1:int,yl:int, -x:int vertices -y:int x2:int,y2:int,x3:int, MyTriangle[v1-(x1,y1), v2-(x2,y2),v3-(x3,y3)] y3:int) +MyTriangle (v1:MyPoint, .-' Use MyPoint's

 How to do this on JAVA ? MyTriangle MyPoint -v1:MyPoint -v2:MyPoint

How to do this on JAVA ?

MyTriangle MyPoint -v1:MyPoint -v2:MyPoint -v3:MyPoint +MyTriangle(x1:int,yl:int, -x:int vertices -y:int x2:int,y2:int,x3:int, "MyTriangle[v1-(x1,y1), v2-(x2,y2),v3-(x3,y3)]" y3:int) +MyTriangle (v1:MyPoint, .-' Use MyPoint's distance) to compute the length of the edge:s v2:MyPoint, v3:MyPoint) +toString():String +getPerimeter():double +getTvpe(): String L- Equilateral" or "Isosceles" or "Scalene

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!