online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> class EmptyA {}; class DerEmptyA : public EmptyA {}; class DerDerEmptyA : public DerEmptyA {}; class Base { public: void f(EmptyA) { std::cout << "Base::f(EmptyA)\n"; } void f(DerEmptyA) { std::cout << "Base::f(DerEmptyA)\n"; } virtual void handle(EmptyA ea) { std::cout << "Base::handle(EmptyA) - "; f(ea); } }; class Derived : public Base { public: void f(DerDerEmptyA) { std::cout << "Derived::f(DerDerEmptyA)\n"; } virtual void handle(EmptyA ea) override final { std::cout << "Derived::handle(EmptyA) - "; Base::f(ea); } }; int main() { Derived d; d.handle(EmptyA{}); d.handle(DerDerEmptyA{}); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue