This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |