🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #823

Re: Constructors

#823
From: Paul Murray
Date: Mon, 01 May 2000 00:00
27 lines
1779 bytes
"Tim Cross" <tcross@northnet.com.au> wrote in message
news:m3zoqcb0xh.fsf@tim.northnet.com.au...
> "Paul Murray" <pmurray@nospam.bigpond.com> writes:
>
> > These two constructors
>
> Umm - I don't think these are both constructors! A constructor cannot
> have a return type and they have to have the same name.
>
> >  public as2q1class(String thestudent_name, int theassign_one, int
> > theassign_two, int thetest_one, int thetest_two)
> >  public void set(String newstudent_name, int newassign_one, int
> > newassign_two, int newtest_one, int newtest_two)
> >
> > Are identical. Why do you have two? The names that you call the
variables
> > don't matter, only the types do.
>
> They are not identical - one is a constructor, the other is a normal
> > class method.

Duh! Pure carelessness on my part. I will have to pay better attention on
the exam tomorrow.

--------------------------------------------------------------
http://www.users.bigpond.com/pmurray
ICQ: 26066755
Technical Details
Message-ID: <bedP4.1306$X4.2398@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3902becc$0$20235@echo-01.iinet.net.au> <g58N4.8005$E4.16113@newsfeeds.bigpond.com> <m3zoqcb0xh.fsf@tim.northnet.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,ba8cc3bfd1429785
X-Google-Attributes: gid10d6db,public
From: "Paul Murray" <pmurray@nospam.bigpond.com>
Subject: Re: Constructors
Date: 2000/05/01
Message-ID: <bedP4.1306$X4.2398@newsfeeds.bigpond.com>
X-Deja-AN: 617801663
References: <3902becc$0$20235@echo-01.iinet.net.au> <g58N4.8005$E4.16113@newsfeeds.bigpond.com> <m3zoqcb0xh.fsf@tim.northnet.com.au>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: newsfeeds.bigpond.com 957177863 139.134.124.117 (Mon, 01 May 2000 20:44:23 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Mon, 01 May 2000 20:44:23 EST
Newsgroups: aus.computers.java