online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// this keyword in method parameter class demo { int a; int b; // Default constructor demo() { a = 10; b = 20; } // Method that receives 'this' keyword as parameter void display(demo obj) { System.out.println("a = " + a + " b = " + b); } // Method that returns current class instance void get() { display(this); } } public class Main { public static void main(String[] args) { demo object = new demo(); object.get(); } }

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