![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 03.12.2019 02:31 RG1971
Write a class called line that represents a line segment between two points. your line objects should have the following methods: public line(point p1, point p2) constructs a new line that contains the given two points. public point getp1() returns this line's first endpoint. public point getp2() returns this line's second endpoint. public string tostring() returns a string representation of this line, such as "[(22, 3), (4, 7)]".
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
You know the right answer?
Write a class called line that represents a line segment between two points. your line objects shoul...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mkx.png)
Arts, 16.04.2021 17:50
![Konu](/tpl/images/cats/istoriya.png)
History, 16.04.2021 17:50
![Konu](/tpl/images/cats/istoriya.png)
History, 16.04.2021 17:50
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/en.png)
English, 16.04.2021 17:50
![Konu](/tpl/images/cats/mkx.png)
Arts, 16.04.2021 17:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.04.2021 17:50
![Konu](/tpl/images/cats/biologiya.png)