|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I am quite new to PHP, so bear with me. I am learning PHP's OOP stuff. Has PHP 5 introduced multi-level class inheritance? Have you ever been able to have multi-level inheritance in PHP? I come from a Java background so OOP is central to the way I program, but I want to move to PHP. Thanks for any replies. |
|
#2
|
||||
|
||||
|
Check out the docs at zend.com. That'll be the offical word on inheritance in PHP5. Seems like there's multi-level inheritance but there's some weird restriction that I can't remember.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Thanks for your reply.
I've checked the zend site, but the only mention of inheritance was on their phorum where someone named Bjørn Danielsen has apparently written a workaround that allows multiple inheritance... to a point, but his site isn't working (aaaargh!). However, his post was written before 5 was released, so I am none the wiser I'm afraid. [ sob ] I just want to use multiple inheritance... please!! (Pathetic isn't it?!) |
|
#4
|
|||
|
|||
|
Quote:
It has been my opinion that you can go years or a lifetime writting applications without a REAL need to use multiple-inheritance. Is this a need or a want for you?
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#5
|
|||
|
|||
|
Inheritance...
Quote:
More of a want I suppose. I don't need multiple inheritance that often, but there are times when I have had to use it. I can certainly live without it though. What I can do in PHP is multiple parent classes, which has worked for me, so I guess I can continue to use that. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Class inheritance |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|