Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How do I go from procedural to object oriented programming?

by marinersk (Priest)
on Apr 20, 2015 at 22:54 UTC ( [id://1124079]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I go from procedural to object oriented programming?
in thread How do I go from procedural to object oriented programming?

Okay. So we need a Class called Movies. The other folks on this thread will be far better suited to give technical details. I have no need for objects in my world, and use them only when I have to in order to use somebody else's Perl Module.

But, in general, you will define an object called Movies, and in that definition, you will indicate that movies have attributes such as:

  • title
  • start year
  • end year
  • media
  • based on
  • company

Once you've defined your Movies Class, you're almost ready for the second earth-shifting part of converting to OO.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found