June 2005
Beginner
480 pages
10h 31m
English
| 1: | The first argument passed to an object method is always
|
| 2: | Can you have method names with the same names as built-in functions, or of already-defined subroutines?
|
| 3: | Does the constructor subroutine in a class have to be called new?
|
| A1: | b. The reference that was blessed in the constructor is returned to each method. In this way the method gets a handle back to the object, and can use it to do its work. |
| A2: | b. It's not really a problem because Perl can always tell that you meant the method—and not the built-in—because ... |
Read now
Unlock full access