software design question

Dang Griffith noemail at noemail4u.com
Mon Feb 9 15:57:11 CET 2004


On 8 Feb 2004 08:18:06 -0800, llothar at web.de (Lothar Scholz) wrote:

>Uwe Mayer <merkosh at hadiko.de> wrote in message news:<c057uq$4ph$1 at news.rz.uni-karlsruhe.de>...
>
>> Do you think there is a reason why in Java every class got to be put into
>> one source file - or is this just a bad language restriction?
>
>This has to do with dynamic loading. Nothing else.

It might have something to do with something else, since it is a false
statement, not a language restriction:
---------- cut here ---------- 
// multiclass.java
// demonstrates two classes in one source file.

class multiclass
{
    public static void main(String args[])
    {
        System.out.println(bork.bork());
    }
}

class bork
{
    public static String bork()
    {
        return "Bork!";
    }
}
---------- ereh tuc ---------- 

    --dang



More information about the Python-list mailing list