Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var __extends = (this && this.__extends) || (function () {
  2.     var extendStatics = Object.setPrototypeOf ||
  3.         ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4.         function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5.     return function (d, b) {
  6.         extendStatics(d, b);
  7.         function __() { this.constructor = d; }
  8.         d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9.     };
  10. })();
  11. var AC = (function () {
  12.     function AC() {
  13.         this.variable = 6;
  14.     }
  15.     return AC;
  16. }());
  17. var ConcreteClass = (function (_super) {
  18.     __extends(ConcreteClass, _super);
  19.     function ConcreteClass() {
  20.         return _super !== null && _super.apply(this, arguments) || this;
  21.     }
  22.     return ConcreteClass;
  23. }(AC));
  24. var a = new ConcreteClass();
  25. console.log(a.variable);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement