Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RADNIK_HPP_INCLUDED
- #define RADNIK_HPP_INCLUDED
- #include "dinstring.hpp"
- class Radnik{
- protected:
- DinString ime,prezime,jmbg;
- public:
- Radnik(){
- this->ime="";
- this->prezime="";
- this->jmbg="";
- }
- Radnik(const DinString &ds1,const DinString &ds2,const DinString &ds3) : ime(ds1),prezime(ds2),jmbg(ds3){}
- Radnik(const Radnik &rd1) : ime(rd1.ime),prezime(rd1.prezime),jmbg(rd1.jmbg){}
- virtual void ispis() const{
- cout<<"Ime:"<<this->ime<<endl;
- cout<<"Prezime:"<<this->prezime<<endl;
- cout<<"JMBG:"<<this->jmbg<<endl;
- }
- };
- #endif // RADNIK_HPP_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement