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

Chapter 21. Packaging Data and Functions... > Introducing Custom Objects

Introducing Custom Objects

You create custom objects by creating a new constructor function defining a new class and then using the new keyword to create new objects belonging to that class.

Basic techniques for creating custom objects are introduced in “Functions as Classes: Constructor Functions,” page 279 (Chapter 15, “Combining Statements into Functions”).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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