Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class Fraktal {
- };
- class Paprika : public Fraktal {
- public:
- int halozatiDrot;
- };
- int main() {
- Paprika p;
- p.halozatiDrot = 5;
- std::cout << p.halozatiDrot;
- Paprika* p2 = new Paprika;
- p2->halozatiDrot = 4;
- std::cout << p2->halozatiDrot;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement