Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- var Base =
- (
- function () {
- var $$ctor =
- function Base () {
- };
- $$ctor.prototype["method"] =
- function method
- (
- )
- {
- console
- [
- "log"
- ]
- (
- "Base.method"
- );
- }
- ;
- $$ctor.prototype["method2"] =
- function method2
- (
- )
- {
- console
- [
- "log"
- ]
- (
- "Base.method2"
- );
- }
- ;
- return $$ctor;
- }
- )();
- var Derived =
- (
- function () {
- var $$ctor =
- function Derived () {
- };
- var $$extended =
- Base;
- util.inherits($$ctor, $$extended);
- $$ctor.prototype["method2"] =
- function method2
- (
- )
- {
- console
- [
- "log"
- ]
- (
- "Derived.method2"
- );
- }
- ;
- return $$ctor;
- }
- )();
- var d =
- new
- Derived
- (
- );
- d
- [
- "method"
- ]
- (
- );
- d
- [
- "method2"
- ]
- (
- );
- }
Add Comment
Please, Sign In to add comment