[Solar-talk] [OT] interfaces or abstract classes

Stuardo -StR- Rodríguez str at strgt.cjb.net
Tue Sep 19 15:06:52 PDT 2006


Sorry to ask here this but I have no other place to ask

My question is...  when should I use interfaces and when to use abstract 
classes.

I do understand that interfaces are just a list of methods some concrete class 
should implement and nothing more

Abstract class are like a interfaces but they can tell wich methods are 
abstract and wich are already defined.. so that is a + for using abstract 
classes

But a concrete class can implement not just one interface but can only extend 
from one single abstract class so that is a + for using interfaces

But that is all I can see...   so after that, I do not get when to use 
interfaces and when to use abstrac classes.   So, if we could inherit from 
many abstrac classes, we would never need interfaces, right?
**
Can anyone help me to understand this?


-- 
Stuardo -StR- Rodríguez
.-[Just me and the world I created]-.
email: str at strgt.cjb.net
www: http://strgt.cjb.net
phpgt: http://php.develsystems.com


More information about the solar-talk mailing list