// // commerciaux.hpp // Entreprise // // Created by vlaurain on 06/03/2018. // Copyright © 2018 vlaurain. All rights reserved. // #ifndef commerciaux_hpp #define commerciaux_hpp #include "Employe.hpp" class commerciaux:public Employe{ protected: int nb_primes; public: commerciaux(); commerciaux(string unnom,string unprenom, int unage,int n):Employe(unnom,unprenom,unage,50),nb_primes(n){};//le salaire de base vaut toujours 50 virtual ~commerciaux();//inutile mais utile pedagogiquement virtual float calcule_salaire() const =0;//necessaire pour le polymorphisme }; #endif /* commerciaux_hpp */