Answered step by step
Verified Expert Solution
Link Copied!

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, 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.
Descriptive Tables. Language is C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions