Concordo

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Alexandre G. L. Fernandes <[EMAIL PROTECTED]>
Cc: Robinson Castilho <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 13, 2000 4:56 PM
Subject: Re: [SouJava-J] classes amigas em java?



Note que o nivel de acesso "package" e' semelhante ao friend, onde todas
as outras classes do mesmo package podem acessar os tributos da classe.

"Alexandre G. L. Fernandes" wrote:
>
> Não, isso não é possível, Robinson. Abaixo estão os especificadores
> permitidos, e qual o escopo de cada um. Este texto foi extraido do
tutorial
> da sun. Se vc não entender ou tiver alguma dúvida, entre lá e procure
> pelo texto: Controlling Access to Members of a Class
> que é o nome da seção que contém estes dados.
> O tutorial está em http://java.sun.com/docs/books/tutorial/index.html
>
> ----
> The following chart shows the access level permitted by each specifier.
>
> Specifier class subclass package world
> private      X
> protected  X       X*         X
> public       X        X          X          X
> package   X        X
>
> The first column indicates whether the class itself has access to the
member
> defined by the access specifier. As you can see, a class always has access
to
> its own members. The second column indicates whether subclasses of the
class
> (regardless of which package they are in) have access to the member. The
> third column indicates whether classes in the same package as the class
> (regardless of their parentage) have access to the member. The fourth
column
> indicates whether all classes have access to the member.
> ----
>
> --
> ====================================
>      Alexandre G. L. Fernandes
>        [EMAIL PROTECTED]
>      Phone: +55 (19) 3737.4548
> Ci&T - software enabling the e-world
>        http://www.cit.com.br
> ====================================
>
> Robinson Castilho wrote:
>
> > Como faco para declarar classes amigas em java? Isso eh possivel?
> >
> >     --------------------------- LISTA
SOUJAVA ---------------------------
> >     http://www.soujava.org.br  -  Sociedade de Usuários Java da
Sucesu-SP
> >     [dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
> >     [para sair da lista:
http://www.soujava.org.br/forum/cadastrados.htm]
> >     [regras da lista: http://www.soujava.org.br/regras.htm]
>
  ---------------------------------------------------------------------
>
>     --------------------------- LISTA SOUJAVA ---------------------------
>     http://www.soujava.org.br  -  Sociedade de Usuários Java da Sucesu-SP
>     [dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
>     [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
>     [regras da lista: http://www.soujava.org.br/regras.htm]
>     ---------------------------------------------------------------------

--
Eduardo Issao Ito <[EMAIL PROTECTED]>
Integration Technologies Ltda. <http://www.integrationtech.com.br>
Rua Marina Saddi Haidar, 176
04650-050 - Sao Paulo - SP - Brasil
Phone: +55 11 5524-8022  Fax: +55 11 5524-0408

    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usurios Java da Sucesu-SP
    [dvidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    [regras da lista: http://www.soujava.org.br/regras.htm]
    ---------------------------------------------------------------------

    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usu�rios Java da Sucesu-SP
    [d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    [regras da lista: http://www.soujava.org.br/regras.htm]
    ---------------------------------------------------------------------

Responder a