C# 클래스 Marmalade_Global.Product

파일 보기 프로젝트 열기: DMOE15C/project-marmelade 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IngredientList List

공개 메소드들

메소드 설명
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

메소드 상세

ListPrice() 공개 메소드

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

Product() 공개 메소드

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
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

IngredientList 공개적으로 프로퍼티

A list of ingredients used in this product
public List IngredientList
리턴 List