Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Answer: How do I make a constructor?

by tlm (Prior)
on Jul 06, 2005 at 03:46 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2021-10-21 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?