0

What is the difference and when/why is it better to use one over the other? They seem to do similar things with abstract classes providing more flexibility.

iliketolearn
  • 670
  • 3
  • 8
  • 25
  • Actually this might answer it better: http://stackoverflow.com/questions/15960729/abstract-class-vs-interface?lq=1 – Amadan Oct 23 '15 at 01:30
  • Mine is regarding php, if there is any difference in oo design principles between .net (your link) and php (my question). – iliketolearn Oct 23 '15 at 01:31
  • 1
    No, same. Abstract classes can implement stuff, but you can have multiple unrelated interfaces. A dog (specific) is an animal (abstract), but it can bite (interface), it is a host for fleas (interface), it is a pet (interface). – Amadan Oct 23 '15 at 01:32

0 Answers0