A line segment is represented by class Line given below. The two end points of a line segmentare represented by the two private date members begin end which are objects of class Point Class Point is defined in Question 7 begin e Line publier constructor Line Lietoint D. Foint) 1 set the beginning point of the line void ettegini Point ) 17 wet the end point of the Line void setendinte 1/ return the length of the line sent double getrength() consta 1 play then yordate of begin and post. vold showcoordinate con private // Point the class you detined in testice point begin Point and Implement function Hakeeray according to the following in-line comments // Cost and returns stray of Line Line Makelarray int si Implement function Shortest according to the following in-line comments utan och to the shortest all the latest te Line shortest tipt, inte Implement function settine according to the following in-line comments able to the Line ce site with et functional sot share the lett void sorte pt, ut sie d Complete the following main program according to the given comments Linete shortest Well Maxelry to create or 100 pointer // to line objects the x and coordinate for the two and posts and Wall appropriate senter functionate at the coordinate of 1.Call appropriate function to Find the shortest line I call appropriate member function to display the code of the two and points at the hottest Intent return A line segment is represented by class Line given below. The two end points of a line segmentare represented by the two private date members begin end which are objects of class Point Class Point is defined in Question 7 begin e Line publier constructor Line Lietoint D. Foint) 1 set the beginning point of the line void ettegini Point ) 17 wet the end point of the Line void setendinte 1/ return the length of the line sent double getrength() consta 1 play then yordate of begin and post. vold showcoordinate con private // Point the class you detined in testice point begin Point and Implement function Hakeeray according to the following in-line comments // Cost and returns stray of Line Line Makelarray int si Implement function Shortest according to the following in-line comments utan och to the shortest all the latest te Line shortest tipt, inte Implement function settine according to the following in-line comments able to the Line ce site with et functional sot share the lett void sorte pt, ut sie d Complete the following main program according to the given comments Linete shortest Well Maxelry to create or 100 pointer // to line objects the x and coordinate for the two and posts and Wall appropriate senter functionate at the coordinate of 1.Call appropriate function to Find the shortest line I call appropriate member function to display the code of the two and points at the hottest Intent return