What is the purpose of abstract classes?
Posted
by SpikETidE
on Stack Overflow
See other posts from Stack Overflow
or by SpikETidE
Published on 2010-02-18T12:15:34Z
Indexed on
2010/06/16
2:42 UTC
Read the original article
Hit count: 265
I am trying to learn OOP in PHP, and I have some confusion about interfaces and abstract classes. They both contain no implementations, only definitions, and should be implemented through their sub-classes. What part of abstract classes clearly distinguishes them from interfaces? Also, due to their apparent similarities, based on what reasons should I decide to use one over the other?
© Stack Overflow or respective owner