snp01

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; class Base { public: Base(){cout<<"Base constructor"<<endl;} ~Base(){cout<<"Base dectructor"<<endl;} }; class Derived : public Base { public: Derived(){cout<<"Derived constructor"<<endl;} ~Derived(){cout<<"Derived destructor"<<endl;} }; int main() { Base * p = new Derived(); delete p; return 1; }
Editor Settings
Theme
Key bindings
Full width
Lines