Through a very popular and simple example, some methods of inter-class interaction are elaborated.
IOC, also
Be
The advantage of the Inversion of Control method. Very good, recommended! http://dev.9cbs.net/develop/Article/24/24397.shtm