online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class Creature { void eating() { System.out.println("Eating..."); } } //extends the properties of superclass Creature class Cat extends Creature { void walking() { System.out.println("Walking..."); } } //extends the properties of superclass Creature class crow extends Creature { void flying() { System.out.println("Flying..."); } } public class Main { public static void main(String args[]) { Cat c = new Cat(); crow c2 = new crow(); // Accessing method of superclass with instance of subclass c.eating(); c.walking(); c2.eating(); c2.flying(); } }

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