Assignment - Case Class Implement a case class Point(x,y) and create following methods: 1. add(+) should add two given points 2. move should move a point by a given distance dx and dy 3. distance should return the distance between two given points 4. invert should switch the x and y coordinates. Your answer should be uploaded to your repository. Post the URL of your repository to the LMS
hbsbashitha / fuctional_programiningassignment_case_class Goto Github PK
View Code? Open in Web Editor NEWAssignment - Case Class Implement a case class Point(x,y) and create following methods: 1. add(+) should add two given points 2. move should move a point by a given distance dx and dy 3. distance should return the distance between two given points 4. invert should switch the x and y coordinates. Your answer should be uploaded to your repository. Post the URL of your repository to the LMS