Design a class named Line. This class is used to identify the coordinate of x and y.
This program should ask user to enter each coordinate values of x and y. Construct a complete program that include the followings:
A no-arg constructor that creates a default values.
A constructor.
Appropriate set and get functions (mutator and accessor).
A pure virtual function to calculate the perimeter.
A virtual function to calculate the area.
A static method to calculate the Line objects.
Students also need to demonstrate the capabilities of the program by overloading one of the operators below:
a) Prefix and postfix increment and decrement operator overloading functions that perform increment and decrement between the coordinates.
b) Addition and Subtraction operator overloading. Both operations are used to calculate the distance between the coordinates.
c) Relational operator that overloads operator <=, >= and !=. These operators are used to test between the coordinates.