Re: public and private parts in classes ?
| From: | Andrey Hristov | Date: | Tue, 25 Sep 2001 13:36:52 +0000 |
| Subject: | Re: public and private parts in classes ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68700@lists.php.net to get a copy of this message | ||
PHP Classes are not so powerful as C++. No there is no division ot private and public or protected.
All is public but good technique
is to name methods you prefer to be private with a underbar at the start.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
----- Original Message -----
From: "Oliver Ruf" <rufus0815@yahoo.com>
To: <php-general@lists.php.net>
Sent: Tuesday, September 25, 2001 4:34 PM
Subject: [PHP] public and private parts in classes ?
> Hello
>
> I'm sorry, if this is a faq. But I would like to know, if there exist
> public and private parts in classes like in c++ ?
>
> AFAIK there are no public and private parts supportet.
>
> I would be pleased to get either a confirmation on that or, if it works,
> some information on how to do it.
>
> Thanx for your support!
> Oliver
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>