online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class Car { int speed; String model; Car(int s,String m) { speed = s; model = m; } //copy constructor Car(Car c) { speed = c.speed; model = c.model; } void display() { System.out.println(speed + " " + model); } } public class Main { public static void main (String[] args) { Car c1 = new Car(500,"eco"); //assigning parameter of c1 to c2 Car c2 = new Car(c1); c1.display(); c2.display(); } }

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