Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "Asistent.h"
- using namespace std;
- void Asistent::ispisiPodatke() {
- cout << this->ime << " " << this->prezime << " " << this->jmbg << " " << this->datumZaposlenja << " " << this->getBrojRadneKnjizice() << " " << this->nazivMasterRada << " " << this->godinaMasteriranja<< endl;
- }
- Asistent::Asistent() {
- }
- 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) {
- this->nazivMasterRada = nazivMasterRada;
- this->godinaMasteriranja = godinaMasteriranja;
- }
- Asistent Asistent::operator<(Asistent a) {
- if (this->radniStaz<a.radniStaz) {
- return *this;
- }
- else {
- return a;
- }
- }
Add Comment
Please, Sign In to add comment