Can somebody tell me how two class associated each other is written in PHP 5 coding? how they declared and how to use their function and variables.class alpha extends beta
Like that?Or like this (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends">http://www.php.net/manual/en/language.o ... ic.extends</a><!-- m -->)?' class alpha extends beta ' is a inheritance isn't it?Yes it is inheritance of course. Is is not what you are looking for?I am looking for aggregation relation between two classes.Object aggregation (<!-- m --><a class="postlink" href="http://www.php.net/objaggregation">http://www.php.net/objaggregation</a><!-- m -->)?thanx for the explanation. And how it is written in PHP 5 coding?Rtfm
Like that?Or like this (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends">http://www.php.net/manual/en/language.o ... ic.extends</a><!-- m -->)?' class alpha extends beta ' is a inheritance isn't it?Yes it is inheritance of course. Is is not what you are looking for?I am looking for aggregation relation between two classes.Object aggregation (<!-- m --><a class="postlink" href="http://www.php.net/objaggregation">http://www.php.net/objaggregation</a><!-- m -->)?thanx for the explanation. And how it is written in PHP 5 coding?Rtfm