C# Class Marmalade_Global.Product

Afficher le fichier Open project: DMOE15C/project-marmelade Class Usage Examples

Méthodes publiques

Свойство Type Description
IngredientList List

Méthodes publiques

Méthode 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 méthode

Calculates the price for the ingredients used in the product.
public ListPrice ( ) : double
Résultat double

Product() public méthode

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
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

IngredientList public_oe property

A list of ingredients used in this product
public List IngredientList
Résultat List