ju JsOOP
For inheritance in javascript.
Installation
$ npm install jujsoop
Usage
var juoop = require('jujsoop');
function Person(name) {
this.name = name;
}
function Male (name) {
this.gender = "M";
}
Person = juoop.abstract(Person);
Male = juoop.inherit(Male, Person);
Methods
juoop.abstract(type)
Parameters:
juoop.inherit(type, base)
Parameters:
-
type
: Type to be used.
-
base
: Inherited type.
Examples
This example shows the most basic way of usage.
License
This software is free to use under the JosephUz. See the LICENSE file for license text and copyright information.