-C++ and USE PROCEDERAL CODE!!!!-No C functions please, only C Plu.docx - -C and USE PROCEDERAL CODE-No C functions please only C Plus Plus-Add comments

-C++ and USE PROCEDERAL CODE!!!!-No C functions please, only C Plu.docx

This preview shows page 1 - 4 out of 9 pages.

-C++ and USE PROCEDERAL CODE!!!! -No C functions please, only C Plus Plus -Add comments please also Using the code down below that was developed in the previous class, add a Line class AFTER the Point class declaration. The Line class should have a constructor that is passed TWO Point objects and a method that couts out the equation of the line in one of THREE possible forms: y = mx + b, or slope-intercept form, y = b, when the slope is 0, or x = c, when the slope is undefined. You will need to modify the main function to test your new class. ___________________________ Class DefinitionsClasses are used to specify user-defined types.Classes are very similar to structs, but unlike structs classes contain functions.What are the essential attributes of a Point? And, what are their types?
public: // access by outside entities IS allowed // constructors used when you declare a �� // variable of type Point �� // accessors functions that allow reading and �� // writing the essential attributes �� // these are optional �� // methods functions defined on all objects �� // of the class Point �� }; Note: that the names of the private variables are GLOBALLY KNOWN throughout the class.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture