note 100991 added to language.oop5.inheritance

From: Date: Fri, 19 Nov 2010 08:05:54 +0000
Subject: note 100991 added to language.oop5.inheritance
Groups: php.notes 
Request: Send a blank email to php-notes+get-174173@lists.php.net to get a copy of this message
<?php /* here is the simply exampleof multiple inherinace */ class foo { protected $mam = 'mamam'; function __construct() { echo 'foo'; } } class bar extends foo { function __construct() { parent:: __construct(); echo 'bar'; } } class foobar extends bar { private static $start; public static function getInstance() { if (self::$start == NULL) { self::$start = new foobar(); } return self::$start; } function __construct() { parent::__construct(); echo 'foo bar'; echo $this -> mam; } } foobar::getInstance(); ---- Server IP: 69.147.83.197 Probable Submitter: 122.144.3.3 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.inheritance.php Edit -- https://master.php.net/note/edit/100991 Del: integrated -- https://master.php.net/note/delete/100991/integrated Del: useless -- https://master.php.net/note/delete/100991/useless Del: bad code -- https://master.php.net/note/delete/100991/bad+code Del: spam -- https://master.php.net/note/delete/100991/spam Del: non-english -- https://master.php.net/note/delete/100991/non-english Del: in docs -- https://master.php.net/note/delete/100991/in+docs Del: other reasons-- https://master.php.net/note/delete/100991 Reject -- https://master.php.net/note/reject/100991 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174173) next »