Workbench / OOP playground

OOP playground

Inspect inheritance, fields and construction dependencies in Python or JavaScript.

Source editor

Classes and instances

Diagram notation

      

Python console

Use print() to inspect the running example.

Skulpt runs Python 3-style class examples in an isolated worker for up to three seconds. Use built-in types and functions. The bundled library is available. Installing packages and interactive input are unavailable.

Reading the result

Use top-level named classes, simple base class names and direct constructor calls. The class view draws inheritance and construction dependencies between declared classes. The instance view lists top-level assignments to constructors. These are source-level observations, so factories, runtime mutation and dynamic imports fall outside the model.

Press Ctrl+Enter or ⌘+Enter to update. Edits are saved in this browser when local storage is available.