[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RES: "behavior"
- From: André de Leiradella <leiradella@...>
- Date: Thu, 20 Jan 2005 00:47:08 -0300
> 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".
*Too way* complicated...
Andre de Leiradella