|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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) |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
RE: Interface or multiple inheritance
check this out.. http://www.artima.com/intv/abcs.html
|
|
#4
|
||||
|
||||
|
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:
May someone explain more about that? Quote:
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 |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Interface or multiple inheritance |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|