Re: Conference Materials Site

From: Date: Sat, 15 Jul 2000 19:59:31 +0000
Subject: Re: Conference Materials Site
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24639@lists.php.net to get a copy of this message
> I went through the Borland slides, which looked good. I have a couple of > questions. > > Firstly, on slide 15 "OOP", I did not understand the "Inheriting a > Constructor" example. I didn't think parent constructors were automatically > called, and the example did not seem to be calling it manually. Should the > title have been "Inheritance and Constructors"? Well, the Cart class that is defined first does not have a constructor. Then we inherit another class which does have a constructor and when we instantiate we instantiate the inherited class. So technically we have inherited a constructor, but you are right in that if we were to instantiate the top class, the constructor in the inherited class would not get called. > Secondly, on slide 29 "Database Abstraction" the example has " use > 'DB'; ". > What is "use"? I cannot find any mention of it in the online manual (I > searched, and I looked hard, especially in Ch. 11 where require and include > live) or the quick function reference (I searched, and I looked at the list > of all functions at http://php.net/quickref.php) or the > function table at > http://www.zugeschaut-und-mitgebaut.de/php/. Where can I find > info about > "use", and what is this 'DB' database abstraction class it is referring to? > Where can I find info on that? Thanks. Yeah, that should actually be require-once instead. Although eventually it will be 'use' here. -Rasmus

« previous php.dev (#24639) next »