C++) A class of points to be implemented for a two dimensional plane you must write. This class should contain the following content: a. Subfields: x and y coordinate information. b. Default constructor: zero values to x and y values should assign. c. The configurator that assigns a value: It must initialize by taking external parameters to x and y values. D. Duplicate constructor: Must create a copy by reference to another point type object. to. Getter and setter methods: Must be written for x and y subfields. f. differenceDone (Point other) method: This method should return the Euclidean distance between the point object and the "other" point object. g. The toString () method: It should return the point structured as a string
(C++) A class of points to be implemented for a two dimensional plane
you must write. This class should contain the following content:
a. Subfields: x and y coordinate information.
b. Default constructor: zero values to x and y values
should assign.
c. The configurator that assigns a value: It must initialize by taking external parameters to x and y values.
D. Duplicate constructor: Must create a copy by reference to another point type object.
to. Getter and setter methods: Must be written for x and y subfields.
f. differenceDone (Point other) method: This method should return the Euclidean distance between the point object and the "other" point object.
g. The toString () method: It should return the point structured as a string.
Step by step
Solved in 3 steps with 1 images