Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2005, 04:53 PM
WebProWorld Member
 

Join Date: Mar 2005
Posts: 29
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: 32
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
Tags:



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

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


Search Engine Optimization by vBSEO 3.2.0