Advertisement
yepp

Untitled

Nov 15th, 2014
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class Fraktal {
  4.  
  5. };
  6.  
  7. class Paprika : public Fraktal {
  8. public:
  9.     int halozatiDrot;
  10. };
  11.  
  12. int main() {
  13.     Paprika p;
  14.     p.halozatiDrot = 5;
  15.  
  16.     std::cout << p.halozatiDrot;
  17.  
  18.     Paprika* p2 = new Paprika;
  19.     p2->halozatiDrot = 4;
  20.  
  21.     std::cout << p2->halozatiDrot;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement