Method | Description | |
---|---|---|
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 ( |
Full-args constructor, taking 2 parameters, and get the TotalSellingPrice by using the calculation place within this class.
|
public CalculateTotalPriceForProduct ( ) : double | ||
return | double |
public CalculateTotalSellingPrice ( ) : double | ||
return | double |
public WeeklyProduct ( |
||
product | ||
totalKgAmount | double | |
return | System |