Multiple inheritance

They have: 426 posts

Joined: Feb 2005

Will PHP 6 allow multiple inheritance? ie....implement more than one class within another class?

greg's picture

He has: 1,581 posts

Joined: Nov 2005

http://wiki.php.net/todo/php60

According to the list of todo Multiple Inheritance for "something" (?) has been dropped

They have: 426 posts

Joined: Feb 2005

What is the reasoning for this? I thought all object orientated languages support multiple inheritance? IS this because it can be achieved using Interfaces?

Im confused???

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

benf wrote:
What is the reasoning for this? I thought all object orientated languages support multiple inheritance? IS this because it can be achieved using Interfaces?

Im confused???

Certainly not all object-oriented languages support multiple inheritance. Even Java doesn't. Yes, interfaces help a little -- but that is not a necessary feature for OO either.

Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.