Seems like I am missing something here. I don't understand what are they good for?
Meaning: simple inheritance between classes, can give the same results, or not?!
And, to be more precise:
Interface
is - as I understand it - a .. list of functions names. and nothing more.
So, what is the added value?
As to Abstract
, Seems that it is a simple class that can't be instantiated at all, and all its use is to force the child-classes, to inherit some methods.
Again - what is the added value?
Both behaviors can be achieved using regular classes. or just avoiding it (when it comes to the Interface
object)
also, please don't point me to duplicates, i've read them all. they explain what are abstract and interface, but not answering my question.
thanks.