🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #20044

Re: What about records in Java/JBuilder

#20044
From: Dieter Zimmermann
Date: Thu, 06 Nov 1997 00:00
33 lines
1474 bytes


Brian Burton wrote:

> Dieter Zimmermann wrote:
> >
> > Hi all,
> >
> > I'm an old "delphian" and new with Java.
> > I just wanted to build me small array of records, but I got stuck with
> > it.
> > So far I don't know how declare a record.
> > Has anyone a snippet of code for me?
> >
>
> There's no "record" construct in Java.  You can simulate a record by using a
> class with all public members.  But you're much better off in the long run to
> think of all data as part of objects.  In OO objects do things to themselves (by
> implementing methods) rather than letting others do things to them (by directly
> modifying their internal data structures).  This makes code far more robust.
>
> ++Brian
>
> --
> Brian Burton                        Custom Software Development
> Burton Computer Corporation         Java, C++, Orbix, Tuxedo
> http://www.burton-computer.com      OO Consulting and Mentoring

Hi Brian,
thanks for your suggestion, I'll try it.

Dieter
Technical Details
Message-ID: <34617267.8E428C6@tamedia.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <346069B9.B249B449@tamedia.ch> <34607F87.D78F7E46@burton-computer.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b8b2433f3e258ea1
X-Google-Attributes: gidf74b3,public
From: Dieter Zimmermann <dieter.zimmermann@tamedia.ch>
Subject: Re: What about records in Java/JBuilder
Date: 1997/11/06
Message-ID: <34617267.8E428C6@tamedia.ch>
X-Deja-AN: 287367745
References: <346069B9.B249B449@tamedia.ch> <34607F87.D78F7E46@burton-computer.com>
Organization: TA-Media AG
Newsgroups: borland.public.jbuilder.java.language