online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class Animal { int weight; String name; void walking() { System.out.println("Animal is walking"); } } //extends the properties of superclass Animal class Cat extends Animal { } public class Main { public static void main(String args[]) { Cat c = new Cat(); // Accessing variable of superclass with instance of subclass c.name = "minii"; c.weight = 8; System.out.println("name = " + c.name + " weight = " + c.weight); // Accessing method of superclass with instance of subclass c.walking(); } }

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