Click to See Complete Forum and Search --> : class association in OOP PHP5


bluecoder
11-26-2005, 03:30 AM
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.

jc94062
11-26-2005, 04:45 AM
class alpha extends beta

Like that?

Weedpacket
11-26-2005, 04:50 AM
Or like this (http://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends)?

bluecoder
11-26-2005, 05:40 AM
' class alpha extends beta ' is a inheritance isn't it?

stephaneey
11-26-2005, 07:30 AM
Yes it is inheritance of course. Is is not what you are looking for?

bluecoder
11-26-2005, 10:03 AM
I am looking for aggregation relation between two classes.

Weedpacket
11-26-2005, 10:29 AM
Object aggregation (http://www.php.net/objaggregation)?

bluecoder
11-27-2005, 11:13 PM
thanx for the explanation. And how it is written in PHP 5 coding?

Weedpacket
11-28-2005, 04:09 AM
Rtfm