Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test {
- //codice
- };
- class TestDerivato: public Test {
- //codice
- };
- int main() {
- //...
- Test * k = new Test;
- TestDerivato * x = static_cast<TestDerivato*>(k);
- //...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement