|
 |
|
Dev Articles Community Forums
> Programming
> PHP Development
|
PHP Class inheritance
Discuss PHP Class inheritance in the PHP Development forum on Dev Articles. PHP Class inheritance PHP Development forum to discuss anything related to developing applications in PHP. Topics include architecture, coding standards, and debugging methods.
|
|
 |
|
|
|

Dev Articles Community Forums Sponsor:
|
|

July 22nd, 2004, 04:01 AM
|
Registered User
|
|
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3
Time spent in forums: 26 sec
Reputation Power: 0
|
|
PHP Class inheritance
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.
|

July 22nd, 2004, 07:28 AM
|
 |
Contributing User
|
|
Join Date: May 2003
Location: Tennessee
Posts: 1,355
Time spent in forums: < 1 sec
Reputation Power: 16
|
|
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.
|

July 22nd, 2004, 09:06 AM
|
Registered User
|
|
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3
Time spent in forums: 26 sec
Reputation Power: 0
|
|
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?!)
|

July 23rd, 2004, 12:31 PM
|
you know how we do
|
|
Join Date: Jun 2002
Posts: 785
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 16
|
|
Quote:
Originally Posted by Mr_Fawlty
Hi all,
I come from a Java background so OOP is central to the way I program, but I want to move to PHP.
|
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?
|

July 24th, 2004, 04:23 AM
|
Registered User
|
|
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3
Time spent in forums: 26 sec
Reputation Power: 0
|
|
Inheritance...
Quote:
Originally Posted by laidbak
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?
|
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.
|

December 1st, 2009, 01:28 AM
|
Registered User
|
|
Join Date: Nov 2009
Location: US
Posts: 3
Time spent in forums: 2 m 2 sec
Reputation Power: 0
|
|
Hi there!
Hi everybody,My name is Allan, I am 41 yrs old, living in Fort Worth, TX. I'd love to make good close friends here.Thanks,Allan.
|

May 30th, 2010, 10:59 PM
|
Registered User
|
|
Join Date: May 2010
Location: US
Posts: 13
Time spent in forums: 3 m 44 sec
Reputation Power: 0
|
|
Here I am*
Hello!I'm new to this forum.. Hope to have nice time around here...Look forward to 'meeting' you all.
|

June 8th, 2010, 12:33 AM
|
Registered User
|
|
Join Date: Jun 2010
Posts: 5
Time spent in forums: 39 m 33 sec
Reputation Power: 0
|
|
Hello Friend
I am Jaydeep Dave. I had Completed Computer Engineering, And Recently I am working as web development so I have need some help for php web development.
|

June 9th, 2010, 11:51 PM
|
Registered User
|
|
Join Date: Jun 2010
Posts: 5
Time spent in forums: 39 m 33 sec
Reputation Power: 0
|
|
hi friend
i am jaydeep dave. i am working as web developer i want to know how creare class in php.
|
Developer Shed Advertisers and Affiliates
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|