Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LEKAR_HPP_INCLUDED
- #define LEKAR_HPP_INCLUDED
- #include "radnik.hpp"
- class Lekar : public Radnik{
- protected:
- int brojLicence;
- public:
- Lekar() : Radnik(),brojLicence(){}
- Lekar(const DinString &ds1,const DinString &ds2,const DinString &ds3,int bl) : Radnik(ds1,ds2,ds3), brojLicence(bl){}
- Lekar(const Lekar &lk1) : Radnik((Radnik)lk1),brojLicence(lk1.brojLicence) {}
- void ispis() const {
- Radnik::ispis();
- cout<<"Broj licence: "<<this->brojLicence<<endl;
- }
- };
- #endif // LEKAR_HPP_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement