SHARE
TWEET

Untitled

a guest Jan 21st, 2020 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  class k1 : public komunikator{
  2. protected:
  3.     string* text;
  4. public:
  5.  
  6.     k1():text(new string("brak")){};
  7.     k1(const string& a):text(new string(a)){};
  8.     k1(const k1& a):text(new string(*a.text)){};
  9.  
  10.      k1& operator = (const k1& a) {
  11.         if(this != &a) {
  12.             delete text;
  13.             text = new string(*a.text);
  14.         }
  15.         return *this;
  16.     }
  17.  
  18.     ~k1(){delete text;}
  19.     ostream& wyswietl (ostream& out){return out<<*text;};
  20.  };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top