>>>>> "Eric" == Eric Starr <[EMAIL PROTECTED]> writes:

    Eric> I am a Java programmer learning PHP.  In Java you can have a
    Eric> class that contains public and private functions.  Only the
    Eric> public functions are accessible outside of the class.  Does
    Eric> PHP have a way to hide functions within a class (i.e. make
    Eric> the private)?

Well, one thing which you could do is to use the scout's honor
protocol: define all of your private methods or protected methods
according to some naming convention, say, beginning with 'p' followed
by two underbars (p__) for private methods.

Then, use an 'honor lock'; only call such functions from authorized
locii such as own classes for private methods or derived classes
for protected functions and so forth...

-l

-- 
Share your feedback at Affero:
    http://svcs.affero.net/rm.php?r=leed_25

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to