Inheriting traits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Inheriting traits

DougEdmunds
The definition of ClassA uses a trait, such as
    "uses: TEasilyThemed"

ClassB is a subclass of  ClassA.

Does ClassB inherit the trait from ClassA,
or does ClassB have to separately state its own
"uses:TEasilyThemed" clause?
Reply | Threaded
Open this post in threaded view
|

Re: Inheriting traits

Stéphane Ducasse
It inherits it.

Stef

On May 9, 2011, at 10:01 PM, DougEdmunds wrote:

> The definition of ClassA uses a trait, such as
>    "uses: TEasilyThemed"
>
> ClassB is a subclass of  ClassA.
>
> Does ClassB inherit the trait from ClassA,
> or does ClassB have to separately state its own
> "uses:TEasilyThemed" clause?
>
>
> --
> View this message in context: http://forum.world.st/Inheriting-traits-tp3510198p3510198.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>