iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2005, 04:53 PM
WebProWorld Member
 
Join Date: Mar 2005
Posts: 30
abalfazl RepRank 0
Default inheritance

Hello firends

In C++,We can use multiple inheritance.

But in PHP 5,A class can inherit from only one parent class.What is advantage of this?
Reply With Quote
  #2 (permalink)  
Old 03-16-2005, 06:24 AM
WebProWorld Member
 
Join Date: Nov 2004
Posts: 33
imported__sam_ RepRank 0
Default Re: inheritance

Quote:
Originally Posted by abalfazl
In C++,We can use multiple inheritance.

But in PHP 5,A class can inherit from only one parent class.What is advantage of this?
Hello,

Multiple inheritance can cause a lot of problems. See http://ozark.hendrix.edu/~burch/csbs...ltinherit.html for a first glance on the issues. That is the reason why many modern OO languages, such as Java, C#, Ada 95 and PHP5, do not support it. There is, however, an ongoing heated debate amongst OO experts on the benefits and problems involved in multiple inheritance.

best regards

Sam
__________________
Software-Pointers.com - Directory of Software Development Sites - Free submission.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:51 AM.



Search Engine Optimization by vBSEO 3.3.0