Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class k1 : public komunikator{
- protected:
- string* text;
- public:
- k1():text(new string("brak")){};
- k1(const string& a):text(new string(a)){};
- k1(const k1& a):text(new string(*a.text)){};
- k1& operator = (const k1& a) {
- if(this != &a) {
- delete text;
- text = new string(*a.text);
- }
- return *this;
- }
- ~k1(){delete text;}
- ostream& wyswietl (ostream& out){return out<<*text;};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement