Beispiel #1
0
    public PrivateCar(int weight)

    {
        Fee = FeeCalc.DetermineFeeByWeight(weight);

        Weight = weight;
    }
Beispiel #2
0
    public MotorCycle(int weight)

    {
        Fee = FeeCalc.DetermineFeeByWeight(weight) * FeeCalc.MotorCycleDiscount;

        Weight = weight;
    }
Beispiel #3
0
 public Vehicle(int weight)
 {
     Fee    = FeeCalc.DetermineFeeByWeight(weight);
     Weight = weight;
 }