online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
class A { int a=10; void ran() { }} class B extends A {int a=20; void run(){ System.out.println(super.a); }} public class Main { public static void main(String[] args) { B obj = new B(); // System.out.println(obj.a); obj.run(); } }

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