Reply to Re: Using a Resource as a Class Property

Your name:

Reply:


Posted by Sanders Kaufman on 07/23/07 15:12

Toby A Inkster wrote:
> Sanders Kaufman wrote:
>
>> Vocabulary question: When I do this, what is the OOP thing that I'm
>> doing? You said that my use of an object as a property of the parent
>> class was "aggregation. So - when I use use "extends" to create the
>> child's reference to the parent - wassat? Marshalling? Inheritance?
>
> I didn't say that, no.
>
> <?php
> /* Aggragation */
> class A {}
> class B
> {
> public $a = new A;
> }
> ?>
>
> <?php
> /* Inheritance */
> class A {}
> class B extends A {}
> ?>
>
> <?php
> /* Implementation */
> interface A {}
> class B implements A {}
> ?>
>
> <?php
> /* Instantiation */
> class A {}
> $a = new A;
> ?>

OK = but what is it called when you use "extend" to create a child class?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация