Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: High level OOP query

by pajout (Curate)
on Oct 24, 2013 at 13:50 UTC ( #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
Node Status?
node history
Node Type: note [id://1059463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-05-30 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?