Re: [PHP-DEV] Conference Materials Site From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/15/00

> 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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>