Design a class named Stock thatcontains:
A string data field named symbol forthe stock's symbol.
A string data field named nameforthe stock's name.
A double data field named previousClosingPrice that stores the stock price forthe previous day.
A double data field named currentPrice that stores the stock price forthe current time.
A constructor that creates a stock with specified symbol andname.
The accessor functions for all data fields.
The mutator functions for previousClosingPrice and currentPrice.
A function named changePercent() that returns the precentage changed from previousClosingPrice to currentPrice.
class Stock
{
public:
Stock(string symbol, stringname);
string getSymbol();
string getName();
double getPreviousClosingPrice();
double getCurrentPrice();
void setPreviousClosingPrice(double previousClosingPrice);
void setCurrentPrice(double currentPrice);
double changePercent();
};
DescriptionDesign a class named Stock that contains:A string data field named symbol for the stock's symbol.A string data field named name for the stock's name.A double data field named previousClos