Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How can I make one class extend another one?

by brother ab (Scribe)
on Sep 19, 2000 at 09:20 UTC ( [id://33057]=note: print w/replies, xml ) Need Help??


in reply to How can I make one class extend another one?

package Child; use base qw(Mother Father);

base pragma not only includes extended classes in @INC, but 'require's them.

Additionally, it is integrated with fields pragma (if you like strict data members protection)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://33057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found