v06-l2-checkCode

(1/2)

What happen when the program executes the delete jedi; in the code below ?

class Dark {};
class Luke: public Dark {};

int main() {
    Dark* jedi = new Luke();
    delete jedi;
}

???