Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class Point2D
  2. {
  3. constructor(public x: number, public y: number)
  4. {
  5. }
  6. }
  7.  
  8. var Point2D = (function () {
  9. function Point2D(x, y) {
  10. this.x = x;
  11. this.y = y;
  12. }
  13. return Point2D;
  14. })();
  15.  
  16. function Point2D(x, y) {
  17. this.x = x;
  18. this.y = y;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement