Jump to content

interface vs abstrac


kickeru

Recommended Posts

hi,

 

i am new to php programming, i am learning php from php.net

 

can someone tell me the difference between an interface and an abstract class?  it seems that you need to implement functions from either the interface or from the abstract class, they can be defined or you need to define and can redefine them.

what advantages would one have over the other?

when would you use one and not the other?

 

Link to comment
https://forums.phpfreaks.com/topic/175087-interface-vs-abstrac/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.