Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class Foo
- {
- public:
- void Run()
- {
- std::cout << "Running...." << std::endl;
- this->Init();
- std::cout << "Run finished!" << std::endl;
- m_run = true;
- }
- protected:
- bool m_run;
- void Init()
- {
- std::cout << "Primary init..." << std::endl;
- }
- };
- int main()
- {
- Foo* f = 0;
- f->Run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement