Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 -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 "ScaleneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started