Méthode | 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 | ||
Résultat | double |
public CalculateTotalSellingPrice ( ) : double | ||
Résultat | double |
public WeeklyProduct ( |
||
product | ||
totalKgAmount | double | |
Résultat | System |