public DoMath(Sandwiches sandwich, int numOfSales) { PriceandCost SandwichesData = new PriceandCost(); costs = SandwichesData.sandwichescost [(int)sandwich]; price = SandwichesData.sandwichesprice[(int)sandwich]; units = numOfSales; }
public DoMath(Coffee size, int numOfSales) { PriceandCost CoffeeData = new PriceandCost(); costs = CoffeeData.coffeecost [(int)size]; price = CoffeeData.coffeeprice[(int)size]; units = numOfSales; }