#include <iostream>
class Example {
public:
Example() {
std::cout << "Default Example!" << std::endl;
}
Example(int id) : ID(id) {
std::cout << "Example!" << std::endl;
}
virtual ~Example() {
std::cout << "~Example:" << ID << std::endl;
}
private:
int ID;
};
int main() {
Example example(0);
example.~Example();
new(&example)Example(1);
return 0;
}