subject

You are asked to write the Point class in order to use point-type objects as follows: Point P = new Point (1,2) // create point P with coordinates (1,2)
Point P = new Point (). // create the coordinate point (0,0)
P. x = 2 // sets the abscissa of P equal to 2
P. y = 5 // sets the abscissa of P = 5
Point Q = P. getSymmetric () // returns the point Q symmetrical to P with respect to the origin. For example if P (2,3) => Q = (- 2, -3)

Code in JAVA, Thanks!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 22.06.2019 15:10
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
You know the right answer?
You are asked to write the Point class in order to use point-type objects as follows: Point P = new...
Questions
question
Computers and Technology, 25.09.2019 14:40
question
Mathematics, 25.09.2019 14:40
question
Mathematics, 25.09.2019 14:50
question
Mathematics, 25.09.2019 14:50
Questions on the website: 13722363