Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

interface x trait in php

An interface defines a set of methods that the implementing class must 
implement. When a trait is used the implementations of the methods 
come along too, which doesn't happen in an interface.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #interface #trait #php
ADD COMMENT
Topic
Name
4+1 =