On Sat, 19 Sep 2009 19:18:50 -0700, Jessta <jes...@gmail.com> wrote:

On 19/09/2009, Pinocchio <cchino...@gmail.com> wrote:
Take a look at "traits", a somewhat new programming language construct
recently introduced in Scala.
http://scg.unibe.ch/research/traits
Its pretty orthogonal to OO and seems to be a good alternative to
inheritance for code reuse. Of course, only time and experience with the
construct would tell how much of an improvement it really is.

What is the difference between traits and an abstract class?
They look exactly the same to me.


Traits contain no data. It basically composes functions in the traits together 
while also letting the programmer take care of conflicts.

--
Pinocchio

Reply via email to