C# 클래스 Marmalade_Global.WeeklyProduct

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

공개 메소드들

메소드 설명
CalculateTotalPriceForProduct ( ) : double

Calculation on the total buying price for this product, it uses a method from Product.cs to get the price needed on this product, and then times it with the TotalKgAmount.

CalculateTotalSellingPrice ( ) : double

Calculation on the total selling price for this product, it uses a method from Product.cs to get the selling price needed on this product, and then times it with the TotalKgAmount.

ToString ( ) : string
WeeklyProduct ( Product product, double totalKgAmount ) : System

Full-args constructor, taking 2 parameters, and get the TotalSellingPrice by using the calculation place within this class.

메소드 상세

CalculateTotalPriceForProduct() 공개 메소드

Calculation on the total buying price for this product, it uses a method from Product.cs to get the price needed on this product, and then times it with the TotalKgAmount.
public CalculateTotalPriceForProduct ( ) : double
리턴 double

CalculateTotalSellingPrice() 공개 메소드

Calculation on the total selling price for this product, it uses a method from Product.cs to get the selling price needed on this product, and then times it with the TotalKgAmount.
public CalculateTotalSellingPrice ( ) : double
리턴 double

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WeeklyProduct() 공개 메소드

Full-args constructor, taking 2 parameters, and get the TotalSellingPrice by using the calculation place within this class.
public WeeklyProduct ( Product product, double totalKgAmount ) : System
product Product
totalKgAmount double
리턴 System