C# Class Marmalade_Global.Product

显示文件 Open project: DMOE15C/project-marmelade Class Usage Examples

Public Properties

Property Type Description
IngredientList List

Public Methods

Method Description
ListPrice ( ) : double

Calculates the price for the ingredients used in the product.

Product ( int amountOfIngredient, string productName, string variety, double size, string containerType, double productPrice, Ingredient IngredientOne, Ingredient IngredientTwo ) : System

Full-args constructor, that adds the ingredients given to the ingredient list.

ToString ( ) : string

Method Details

ListPrice() public method

Calculates the price for the ingredients used in the product.
public ListPrice ( ) : double
return double

Product() public method

Full-args constructor, that adds the ingredients given to the ingredient list.
public Product ( int amountOfIngredient, string productName, string variety, double size, string containerType, double productPrice, Ingredient IngredientOne, Ingredient IngredientTwo ) : System
amountOfIngredient int
productName string
variety string
size double
containerType string
productPrice double
IngredientOne Ingredient
IngredientTwo Ingredient
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

IngredientList public_oe property

A list of ingredients used in this product
public List IngredientList
return List