WTF is a trait?
stéphane ducasse
ducasse at iam.unibe.ch
Sat Sep 3 20:41:13 UTC 2005
On 3 sept. 05, at 19:50, Eric Goebelbecker wrote:
> So, at the risk of oversimplifying, are traits very similar to
> interfaces in Java?
no because in java you have to reimplement all the methods.
With traits you reuse them. A class is composed out of traits.
More information about the Squeak-dev
mailing list
|