want to join us? register, it's easy | help
category icon

Mixins in PHP

in PHP added by goodphptutorials, on 5/6/2010 advanced tutorials mixin php5

One of the concepts I like in Ruby is the concept of "mixins". Mixins are a way of 'mixing in' functionality of other classes. A kind of 'multiple inheritance' like approach, only without actual inheritance. It is similar to interfaces, but interfaces only tell you that an object must implement certain methods, whereas mixins also provide an implementation.

comment save report
Sat, Jun 5th 2010, 12:08
clicks today
clicks this month
clicks all time