Prototypal inheritance

An example showing how to implement prototypal inheritance using Tizen 2.3.
var Parent = function() {};

var Child = function() {
  Parent.apply(this, arguments);
};

Parent.prototype = Object.create(Child.prototype);
Parent.prototype.constructor = Parent;

Responses

0 Replies