Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- {
- public:
- void update()
- {
- ((Bar*)this)->baz = 10;
- }
- };
- class Bar: public Foo
- {
- public:
- void update()
- {
- Foo::update();
- }
- protected:
- int baz;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement