Write the definition of a class that has the following properties:
a. The name of the class is Stock.
b. The class Stock has four instance variables: name of type String, previousPrice and closingPrice of type double, and numberOfShares of type int.
c. The class Stock has the following methods: