🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What about records in Java/JBuilder

#20036
From: Brian Burton
Date: Wed, 05 Nov 1997 00:00
24 lines
1328 bytes
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
Technical Details
Message-ID: <34607F87.D78F7E46@burton-computer.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <346069B9.B249B449@tamedia.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b8b2433f3e258ea1
X-Google-Attributes: gidf74b3,public
From: Brian Burton <brian.burton@burton-computer.com>
Subject: Re: What about records in Java/JBuilder
Date: 1997/11/05
Message-ID: <34607F87.D78F7E46@burton-computer.com>
X-Deja-AN: 287199289
References: <346069B9.B249B449@tamedia.ch>
Organization: Burton Computer Corporation
Newsgroups: borland.public.jbuilder.java.language