[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RES: "behavior"
- From: André de Leiradella <leiradella@...>
- Date: Thu, 20 Jan 2005 00:47:08 -0300
lua-bounces@bazar2.conectiva.com.br wrote:
> Here is an Objective-C example on how to add "behavior" to another
> class. In a nutshell, a class in Objective-C is simply a structure
> holding methods (aka functions). You can therefore easily move methods
> (aka "behaviors") from one class to another. So instead of (ab)using
> inheritance, one is more likely to use "composition".
>
> Cheers
*Too way* complicated...
Regards,
Andre de Leiradella