Article View: borland.public.jbuilder.java.language
Article #7922Re: How to define class property/method?
From: John McGrath [TeamB]
Date: Tue, 01 May 2001 22:44
Date: Tue, 01 May 2001 22:44
15 lines
1140 bytes
1140 bytes
> How can I define class property and
> class method in Java?
Use the keyword "static". For example:
private static int intValue;
public static void setIntValue( int newValue ) {
intValue = newValue;
}
--
Regards,
John McGrath [TeamB]
Technical Details
Message-ID:
<3aef3c35$1_2@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3aef0588_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bae56e3d095ffe54 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-01 16:14:02 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language References: <3aef0588_1@dnews> Subject: Re: How to define class property/method? Date: Tue, 1 May 2001 18:44:06 -0400 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 204.120.92.122 Message-ID: <3aef3c35$1_2@dnews> X-Trace: dnews 988757045 204.120.92.122 (1 May 2001 15:44:05 -0700) Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews