2022-10-06 10:41:21 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Programmation_objet_TLESIO21.TD4 {
|
|
|
|
|
public class Commercial : Collaborateur {
|
|
|
|
|
private int SalaireBase;
|
|
|
|
|
private int ChiffreAffaire;
|
|
|
|
|
private readonly double T2 = 1.1;
|
|
|
|
|
|
|
|
|
|
public Commercial(String nom, String birthdate, int salaireBase, int chiffreAffaire) : base(nom, birthdate) {
|
|
|
|
|
this.SalaireBase = salaireBase;
|
|
|
|
|
this.ChiffreAffaire = chiffreAffaire;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-11 10:04:27 +02:00
|
|
|
|
public override double GetSalaire() {
|
2022-10-06 10:41:21 +02:00
|
|
|
|
return this.SalaireBase + this.ChiffreAffaire * T2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|