Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Profesor {
- private:
- string nume, depart, grad_Didactic;
- unsigned short vechime;
- public:
- Profesor(); //constructor fara parametri
- Profesor(string, string, string, unsigned short); //constructor cu parametri de tip string
- void ShowDates();
- void SetName(string nume) { this->nume = nume; }
- void SetDepart(string depart) { this->depart = depart; }
- void SetGrad(string grad_Ditactic) { this->grad_Didactic = grad_Didactic; }
- void setVechime(unsigned short vechime) { this->vechime = vechime; }
- };
- Profesor::Profesor(string nume, string depart, string grad_Didactic, unsigned short vechime)
- {
- this->nume = nume;
- this->depart = depart;
- this->grad_Didactic = grad_Didactic;
- this->vechime = vechime;
- }
Advertisement
Add Comment
Please, Sign In to add comment