| var __extends = this.__extends || function (d, b) { function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var Base = (function () { function Base() { } Base.prototype.show = function () { var x = 20; alert("This is show method of base class " + x); }; return Base; })(); var drive = (function (_super) { __extends(drive, _super); function drive() { _super.apply(this, arguments); } drive.prototype.display = function () { var y = 10; this.show(); alert("This is display method of drive class " + y); }; return drive; })(Base); window.onload = function () { var greeter = new drive(); greeter.display(); }; //@ sourceMappingURL=app.js.map |