Alx09

Untitled

Oct 20th, 2020
852
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Profesor {
  2. private:
  3.     string nume, depart, grad_Didactic;
  4.     unsigned short vechime;
  5. public:
  6.     Profesor(); //constructor fara parametri
  7.     Profesor(string, string, string, unsigned short); //constructor cu parametri de tip string
  8.     void ShowDates();
  9.     void SetName(string nume) { this->nume = nume; }
  10.     void SetDepart(string depart) { this->depart = depart; }
  11.     void SetGrad(string grad_Ditactic) { this->grad_Didactic = grad_Didactic; }
  12.     void setVechime(unsigned short vechime) { this->vechime = vechime; }
  13. };
  14. Profesor::Profesor(string nume, string depart, string grad_Didactic, unsigned short vechime)
  15. {
  16.     this->nume = nume;
  17.     this->depart = depart;
  18.     this->grad_Didactic = grad_Didactic;
  19.     this->vechime = vechime;
  20. }
RAW Paste Data