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

Re: Need help making the change to OO

by Anonymous Monk
on Jun 27, 2012 at 20:22 UTC ( #978758=note: print w/ replies, xml ) Need Help??


in reply to Need help making the change to OO

I do not think that you are really trying OO here ... but if you want to "wrap your head around it," it's simple. (Especially in Perl, which "keeps the useful ideas well a hand and skips the academic-only stuff.") An object is a chunk of data which has a chunk of executable code "somehow, magically" associated with it ... such that when you do, "hey you! do this!" the computer can figure out on its own how to "do this." It figures out on its own which subroutine to call. The subroutine that gets called can figure out who "you" is. The key advantage is that the language figures out, on-the-fly every-time right-now at runtime, exactly how to tell "you" to do "this."somehow, magically


Comment on Re: Need help making the change to OO

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-07-12 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls