Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Shapes = (function () {
- var Shape = (function () {
- }
- Shape.prototype.toString = function () {};
- return Shape;
- }());
- var Circle = (function () {
- function Circle () {
- }
- Circle.extends(Shape);
- Circle.prototype.toString = function() {
- Shape.prototype.toString.call(this);
- // ....
- };
- return Circle;
- }());
- var Rectangle = (function () {
- function Rectangle () {
- }
- Rectangle.extends(Shape);
- Rectangle.prototype.toString = function() {
- Shape.prototype.toString.call(this);
- // ...
- };
- return Rectangle;
- }());
- return {
- Shape: Shape,
- Circle: Circle,
- Rectangle: Rectangle
- };
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement