SHARE
TWEET

Untitled

a guest Apr 24th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Kalendarz {
  2. public:
  3.     Kalendarz() { cout << "konstruktor Kalendarz" << endl; }
  4.     virtual ~Kalendarz() { cout << "destruktor Kalendarz" << endl; }
  5.     virtual void show() { cout << "show Kalendarz" << endl; }
  6. protected:
  7.     int i{ 7 };
  8. };
  9.  
  10. //Komentarz
  11. class Dostawa
  12. {
  13. public:
  14.     Dostawa() { cout << "Dostawa"; }
  15.     void show() { cout << "Pokaz"; }
  16. };
  17. class Dostawa1 :virtual public Dostawa
  18.     //class BB1: public BB
  19. {
  20. public:
  21.     Dostawa1(int bb1) : b1(bb1) { cout << "Dostawa \t"; }
  22.     void show() override { cout << "\n show"; }
  23. private:
  24.     int b1;
  25. };
  26. class Dostawa2  final : Dostawa1
  27. {
  28. public:
  29.     Dostawa2(int cc1) : c1(cc1) { cout << "Dostawa \t"; }
  30.    
  31. private:
  32.     int c1;
  33. };
  34. class wielopoziomowo :public Dostawa, public Dostawa1
  35. {
  36. public:
  37.     wielopoziomowo(int dd, int bb1, int bb2) : Dostawa(bb1), Dostawa1(bb2)
  38.     {
  39.         cout << "Pokaz dostawy dwoch kategorii \t";
  40.     }
  41.     ~wielopoziomowo() { cout << "Brak dostawy \t"; }
  42.     void poka() { cout << "\n poka"; }
  43. private:
  44.     int d;
  45. };
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