Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 bc
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started