Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Base {
- public:
- bool someGuaranteedResult() { return true; }
- };
- class Child : public Base {
- public:
- bool someGuaranteedResult() { return false; /* Haha I broke things! */ }
- };
- Parent* obj = new Child();
- int foo() { return 1; }
- int foo() { return 2; }
Add Comment
Please, Sign In to add comment