php Classes : Abstract class vs interface

Pubblicato il: 31 dicembre 2017
sul canale di: WebTecho Tutorials
4,656
15

Support this channel
https://www.buymeacoffee.com/webtecho
Thanks a lot


The purpose of both Abstract classes and interface is to abstract out details from the concrete classes. But there is a primary difference between Abstract class and interface. Abstract class can actually contain a method and body which means it takes away some of the code of the concrete class, it will be derived to.

Interface on the other hand just contains a method signature minus the body and it is to be always implemented by the class extending it.


In questa pagina del sito puoi guardare il video online php Classes : Abstract class vs interface della durata di ore minuti seconda in buona qualità , che l'utente ha caricato WebTecho Tutorials 31 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,656 volte e gli è piaciuto 15 spettatori. Buona visione!