• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. Packaging Data and Functions... > new “Orphans” the Existing Subclass ...

new “Orphans” the Existing Subclass prototype

The new operator has a limitation that you should be aware of: If the subclass has an existing prototype object, it gets left behind when the subclass is linked to the new superclass.

What does “gets left behind” mean in this context?


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint