Method 'Behaviors' of CModel and CController

Can any one please explain how behaviors declared in the CModel::behaviors() and CController::behaviors() will be attached to the corresponding model or controller, when it is instantiated.