Advertisement
dusanrs

lekar.hpp

Dec 16th, 2021
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #ifndef LEKAR_HPP_INCLUDED
  2. #define LEKAR_HPP_INCLUDED
  3.  
  4. #include "radnik.hpp"
  5.  
  6. class Lekar : public Radnik{
  7. protected:
  8.     int brojLicence;
  9. public:
  10.     Lekar() : Radnik(),brojLicence(){}
  11.  
  12.     Lekar(const DinString &ds1,const DinString &ds2,const DinString &ds3,int bl) : Radnik(ds1,ds2,ds3), brojLicence(bl){}
  13.  
  14.     Lekar(const Lekar &lk1) : Radnik((Radnik)lk1),brojLicence(lk1.brojLicence) {}
  15.  
  16.     void ispis() const {
  17.         Radnik::ispis();
  18.         cout<<"Broj licence: "<<this->brojLicence<<endl;
  19.     }
  20.  
  21.  
  22.  
  23. };
  24.  
  25. #endif // LEKAR_HPP_INCLUDED
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement