You work for Business Software Inc. They have been contracted by a client who is in the business of buying and selling stocks. You have been assigned to come up with some different designs for the class: TheStock whose attributes are to be:
![]() |
stockName, stockID and stockPrice.
![]() |
This class should be able to use some of the overloaded operators to make the handling of this class more efficient.
stock1.cpp This program demonstrates the overloading of a relational operator.
stock2.cpp This program demonstrates input and output by overloading << and >>
stock3.cpp This program demonstrates input and output by overloading << and >> where the >> operator is connected to an external text file: stock.txt
stock4.cpp This program demonstrates input and output by overloading << and >> where both operators are used by cout and the << operator is connected to an external text file.