Alawi Albaity wrote:
Shor answer no:I have object A and object B that extended from object A and have it Own abilities and object C that extended from object A and have it Own abilities I want to use the abilities of object B on object C and abilities of object C on object B , but the problem that what found out is that I must merge this classes with the original class together so I can do all abilities . this is not work out with me if I have to merge big class , so is there any possibility to do that so I can win the abilities of this two classes together without merge ?
long answer: you can use an interface to describe the behaviour of class B and implement that interface in class C so that class C can be made to behave like class B does.
Having said all that if you want class B to behave like class C there is a problem in the design and any time spent now in rectifying the issue (possibly by mering the two classes) will definitely save you countless hours of hair pulling in the future.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php