Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Loading class

by arturo (Vicar)
on Mar 07, 2003 at 14:53 UTC ( [id://241145]=note: print w/replies, xml ) Need Help??


in reply to Loading class

Just a note on general OO technique; normally, there's no need for a module that defines a class to export any symbols because you want your objects to be encapsulated: the functionality an object makes available to the programs that use it is typically expected to be accessed through an instance of the object, or, in the case of class methods, by explicity referencing the class method through its fully qualified name. If you find yourself wanting to export a lot of functions or other symbols from a module that defines a class, then it might be time to rethink your design.

If not P, what? Q maybe?
"Sidney Morgenbesser"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-28 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found