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]
---------------------------------------------------------------------