Menu

[Solved]-Using C Create Class Called Point Implement Characteristics 2d Point Class Contain Followi Q37166482

Using C++ :

Create a class called point to implement the characteristics ofa 2D point. Your class should contain the following operations:

  • setters and getters to set and retrieve the x and y coordinatesindividually
  • find the distance between 2 points
  • A constructor

Create another class called line, with 2 private data members oftype point to store the coordinates of 2 points in a line in the2Dimensional plane. Your class line should contain at least thefollowing methods:

– Functions to determine if the line is vertical orhorizontal

– A function to find the point of intersection of two lines ifthey are not parallel.

In the main, test your classes

Please help me submission is tomorrow 🙁

Expert Answer


Answer to Using C++ : Create a class called point to implement the characteristics of a 2D point. Your class should contain the fo… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *