I have a base class called StockItem and one called EcoStockItem and a Plate subclass. EcoStockItem has a Juice object that is a subclass to EcoStockItem. In another class, I have the method AddItem (StockItem p). From the Form1 class should I send the StockItem item as a parameter to the method AddItem? I could not access the other property from subclasses. How should I do it? Create an object of StockItem to inherit all properties from subclasses and add it to a StockItem array?
1 short reply
Gordana Sretenovic73 pointsPosted Nov 2, 2013, 11:41 AM EDT