Article View: be.comp.programming
Article #2265Re: java this.
From: Dirk
Date: Mon, 02 Aug 2004 20:00
Date: Mon, 02 Aug 2004 20:00
17 lines
1374 bytes
1374 bytes
Pieter Philippaerts wrote:
> "Dirk" <d.bollen@pandora.be> wrote in message
>> Nu vraag ik me al een tijdje af waarvoor 'this.' staat?
> public class SomeClass {
> private int myVar;
>
> public void myMethod(int myVar) {
> this.myVar = myVar;
> }
> }
> Zonder 'this' zou je hier een probleem hebben.
Omdat dit interfereert met de private MyVar die doorheen de hele class
gekend is?
Technical Details
Message-ID:
<j3xPc.201886$Tj.10143839@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed1.uni2.dk!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<vwSJc.187073$Y_5.9163872@phobos.telenet-ops.be> <1091404643.500206@seven.kulnet.kuleuven.ac.be>Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,9b938d26cb386f05 X-Google-Attributes: gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed1.uni2.dk!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: Dirk <d.bollen@pandora.be> Subject: Re: java this. Newsgroups: be.comp.programming References: <vwSJc.187073$Y_5.9163872@phobos.telenet-ops.be> <1091404643.500206@seven.kulnet.kuleuven.ac.be> Lines: 18 User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <j3xPc.201886$Tj.10143839@phobos.telenet-ops.be> Date: Mon, 02 Aug 2004 20:00:15 GMT NNTP-Posting-Host: 81.165.88.43 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1091476815 81.165.88.43 (Mon, 02 Aug 2004 22:00:15 MEST) NNTP-Posting-Date: Mon, 02 Aug 2004 22:00:15 MEST Organization: Telenet Internet