Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 22nd, 2005, 06:48 AM
tasoua tasoua is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 103 tasoua User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 19 sec
Reputation Power: 2
Interface or multiple inheritance

Hello

It's said:

" It's quite possible to do the same things that are done with multiple inheritance through interfaces (which PHP5 supports) and advanced OO patterns. "

I wanna know how can interface that

What are advantages of using interface instead of Multiple inheritance?(Please give me an example)


Reply With Quote
  #2  
Old April 24th, 2005, 10:50 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Click here for more information.
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,727 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 4 m 45 sec
Reputation Power: 6
RE: Interface or multiple inheritance

from the little i read - multiple inheretance causes a problem with data potentially clashing from the classes (name and value wise). Interfaces have no data involved.

Reply With Quote
  #3  
Old April 29th, 2005, 01:44 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Interface or multiple inheritance

check this out.. http://www.artima.com/intv/abcs.html

Reply With Quote
  #4  
Old August 2nd, 2005, 01:50 AM
tasoua tasoua is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 103 tasoua User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 19 sec
Reputation Power: 2
This article

Hello firends

I read this article and someparts of this article aren't clear to me:

http://c2.com/cgi/wiki?ConfusionAboutInheritance

Quote:
Claiming inheritance is fundamental to OO (as is demonstratably incorrect - there are OO techniques and languages without inheritance), when its used in different ways for several different things


May someone explain more about that?


Quote:

What different things are done with inheritance (and how)?

various means of polymorphism and encapsulation:
delegating state, behavior, or interface definition to a super-class, see InterfaceInheritance and ImplementationInheritance
delegating behavior to a derived class (virtual method calls)




various means of encapsulation?
delegating state, behavior, or interface definition to a super-class, see InterfaceInheritance and ImplementationInheritance

delegating behavior to a derived class ?

May someone give me example for these three statements?

Good Luck

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Interface or multiple inheritance


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway