Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Answer: How do I make a constructor?

by tlm (Prior)
on Jul 06, 2005 at 03:46 UTC ( [id://472674]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I make a constructor?
in thread How do I make a constructor?

Why the separate _init method?

the lowliest monk

  • Comment on Re: Answer: How do I make a constructor?

Replies are listed 'Best First'.
Re^2: Answer: How do I make a constructor?
by BaldPenguin (Friar) on Jul 06, 2005 at 05:10 UTC
    I do this same thing with the _init(). Basically I can use an inheritence and the constructor remains the same, the _init method can change with each child object. It just seems to keep things organized.

    Don
    WHITEPAGES.COM | INC

    Edit by castaway: Closed small tag in signature

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found