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

Re: High level OOP query

by pajout (Curate)
on Oct 24, 2013 at 13:50 UTC ( [id://1059463]=note: print w/replies, xml ) Need Help??


in reply to High level OOP query

Hello packetstormer,
for better general understanding, I recommend Advanced Perl Programming by Sriram Srinivasan, that book helped me very much.

Specially about your question: There are many ways how to initiate instances of classes, for instance:

  • blank instance, initialized just by calling setter methods
  • with hardcoded default values
  • with values specified by argument of new method
  • combination of previous 2 concepts
  • new method calls init method
  • etc., typically with usage of inheritance
I think the point is to design it in way, which satisfies your exact requirements.

Log In?
Username:
Password:

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

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

    No recent polls found