#!/usr/local/bin/node var inherits = function(childCtor, parentCtor) { Object.setPrototypeOf(childCtor.prototype, parentCtor.prototype); }; var Parent = function(arg) { // Parent のコンストラクタ実装 }; var Parent.prototype.method0 = function() { console.log('Parent.method0'); }; var Child = function(arg) { // Child のコンストラクタの実装 }; inherits(Child, Parent); Child.prototype.method1 = function() { console.log('Child.method1'); }; var child = new Child(); child.method0(); child.method1();