Re: Overloading Constructors

From: Date: Mon, 25 Nov 2002 11:58:09 +0000
Subject: Re: Overloading Constructors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125914@lists.php.net to get a copy of this message
Yes. http://www.sharksforum.com "Dan Field" <danf@ceredigion.gov.uk> skrev i en meddelelse news:1038221845.1245.144.camel@dsspc... > is it doable? > > ie > > class myClass { > var $myInt; > > // default constructor > function myClass() { > } > > // overloaded constructor > function myClass($newInt) { > $this->myInt = $newInt; > } > > } > > > -- > Dan Field > Systems Development Officer - Social Services Dept. > Ceredigion County Council. > > > > **************************************************************************** **** > Mae'r neges ebost hon, ynghyd ag unrhyw ffeiliau sydd ynghlwm wrthi, > yn gyfrinachol ac at ddefnydd yr unigolyn neu sefydliad y cyfeiriwyd hi ato. > Pe dderbynioch y neges hon mewn camgymeriad, byddwch > mor garedig a rhoi gwybod i'r rheolwr system. > > Mae'r nodyn hwn hefyd yn cadarnhau bod y neges ebost hon wedi > cael ei archwilio am bresenoldeb feirws cyfrifiadurol gan MIMEsweeper. > > **************************************************************************** **** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > **************************************************************************** **** >

« previous php.general (#125914) next »