{"version":"1.0","type":"rich","title":"inherit.js","description":"This example demonstrates classical inheritance for JavaScript constructors by providing an `inherit` utility function. The `inherit.js` file defines the helper, which copies a parent's static properties and sets up prototype chaining while exposing the parent's prototype as `child.uber`. The accompanying `index.html` shows a concrete usage where `Snake` inherits from `Animal`, calling the parent constructor via `Snake.uber.constructor.apply` and overriding the `move` method to invoke the parent's implementation. The example relies entirely on JavaScript's native prototype system, with no external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-decf360c677a54aa415c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}