Skip to content

Instantly share code, notes, and snippets.

View azonedev's full-sized avatar
🎯
Focusing

Abdullah Al mamun azonedev

🎯
Focusing
View GitHub Profile
Traits :
Traits is kind of virtual path, in php we can't support multiple inheritance. So here comes the solution we can use multiple traits in a single class.
Interface :
Interface like a contact where we can declar properties & method And we can implement that on other class.
Abstract :
Sometimes we may come across a situation where we cannot provide implementation to all the methods in a class. We want to leave the implementation to a class that extends it.