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