- There are 2 classes Line and Point.
- The class line is a representation of a line on the cartesian plane
- The line consists of 2 points
- Data members of both the classes are private
- Each point is an instance of the class Point
- The co-ordinates of Point are double
- The class Line has following:
- default constructor, copy constructor, initializer constructor
- Methods to set either point independently or both at once
- comparision operators ( == and != )
- istream and ostream (>> and <<) operators
- Distance() //length of the line
- Slope() //slope of the line
-
Notifications
You must be signed in to change notification settings - Fork 0
anirudhtetali/Object_oriented_design_cpp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published