happycompiler.com
Stock Purchase Inheritance ISC 2014 Theory
A super class Stock has been defined to store the details of the stock of a retail store. Define a subclass Purchase to store the details of the items purchased with the new rate and updates the st…