jelenpivo123

asistentt.cpp

Oct 5th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <iostream>
  2. #include "Asistent.h"
  3.  
  4. using namespace std;
  5.  
  6. void Asistent::ispisiPodatke() {
  7. cout << this->ime << " " << this->prezime << " " << this->jmbg << " " << this->datumZaposlenja << " " << this->getBrojRadneKnjizice() << " " << this->nazivMasterRada << " " << this->godinaMasteriranja<< endl;
  8. }
  9.  
  10. Asistent::Asistent() {
  11. }
  12.  
  13. Asistent::Asistent(string ime, string prezime, string jmbg, string brojRadneKnjizice, int radniStaz, string datumZaposlenja, string nazivMasterRada, int godinaMasteriranja) :Osoba(ime, prezime, jmbg), Zaposleni(brojRadneKnjizice, radniStaz, datumZaposlenja) {
  14. this->nazivMasterRada = nazivMasterRada;
  15. this->godinaMasteriranja = godinaMasteriranja;
  16. }
  17.  
  18. Asistent Asistent::operator<(Asistent a) {
  19. if (this->radniStaz<a.radniStaz) {
  20. return *this;
  21. }
  22. else {
  23. return a;
  24. }
  25. }
Add Comment
Please, Sign In to add comment