Question: Design the class Line to implement a line: Overloads the stream insertion operator, < < , for easy output. Overloads the stream extraction operator, >

Design the class Line to implement a line:
Overloads the stream insertion operator, <<, for easy output.
Overloads the stream extraction operator, >>, for easy intput. (The lineax + by = c is input as (a, b,c)
Overloads the assignment operator to copy a line into another line.
Overloads the unary operator +, as a member function, so that it returns
true if a line is vertical; false otherwise.
Overloads the unary operator -, as a member function, so that it returns true if a line is horizontal; false otherwise.
Overloads the operator ==, as a member function, so that it returns true if two lines are equal; false otherwise.
Overloads the operator ||, as a member function, so that it returns true if two lines are parallel; false otherwise.
Overloads the operator &&, as a member function, so that it returns true if two lines are perpendicular; false otherwise.
Write a program to test your class.
The solution must contain the following:
Source code.
Separate class specifications from implementation.
Program output (Language is C++)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!