note 91813 added to language.oop5.decon

From: Date: Fri, 26 Jun 2009 13:49:44 +0000
Subject: note 91813 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-157532@lists.php.net to get a copy of this message
Without __constructor constructor will call like this. Why because, Here Class name and function name are equal. <?php class baseclass { function baseclass() { echo "constructor is called"."<br>" ; } } class deriviedclass extends baseclass { function deriviedclass() { parent::baseclass(); } } $object_base=new baseclass(); $object_derive=new deriviedclass(); ?> Out put is constructor is called constructor is called ---- Server IP: 59.162.86.33 Probable Submitter: 202.63.103.229 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/91813 Del: integrated -- https://master.php.net/note/delete/91813/integrated Del: useless -- https://master.php.net/note/delete/91813/useless Del: bad code -- https://master.php.net/note/delete/91813/bad+code Del: spam -- https://master.php.net/note/delete/91813/spam Del: non-english -- https://master.php.net/note/delete/91813/non-english Del: in docs -- https://master.php.net/note/delete/91813/in+docs Del: other reasons-- https://master.php.net/note/delete/91813 Reject -- https://master.php.net/note/reject/91813 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157532) next »