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

Chapter 2. Function() > Example: Using the Function() Objects' Source Codes

Example: Using the Function() Objects' Source Codes

Most functions, including all user-defined functions, can be replaced with other Function() objects. This unique feature allows us to emulate two different procedures: editing the source code of a function, and also a concept known as method overloading.

The first listing can be used to prepare a Function() object to have its source code edited. The first argument of this function is the Function() object you want to edit. The second is a function you define to edit the source code (see Listing 2.10).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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