[2011] in java-interest

home help back first fref pref prev next nref lref last post

class in differents files

daemon@ATHENA.MIT.EDU (prepapol@lifl.fr)
Thu Sep 21 18:05:55 1995

From: prepapol@lifl.fr
Date: Thu, 21 Sep 95 20:14:22 +0200
To: java-interest@java.sun.com

Hi,

I would like writing a package with several files (.java). And some of them
contains some objects of a class which is writting in an other file and this
file contains some objects which have their class type in the first file.

For exemple :

------------------
//classA.java

package MyPackage;

class ClassA
{
  ClassB cb;
  ...
}

------------------
//classB.java

package MyPackage;

class ClassB
{
  ClassA ca;
  ...
}

In this way if I compile classA.java, it don't know classB and vis and versa.

If someone have any idea to do this ? (classA.java and classB.java are compiling in the
same directory).

-------------------------------------------------
Bruno CUVELIER           e-mail: prepapol@lifl.fr

Universite des Sciences et Technologies de Lille
Laboratoire d'Informatique Fondemmentale de Lille
Cite Scientifique
U.F.R. d'IEEA, batiment M3
59655 Villeneuve d'Ascq CEDEX.
FRANCE
-------------------------------------------------
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post