在I met him in town中,him是直接宾语。
In 'Give him the money', 'him' is the indirect object and 'money' is the direct object.在give him the money中,him是间接宾语,money是直接宾语。
In 'She wrote a letter', the verb 'wrote' is transitive and the word 'letter' is the direct object.在She wrote a letter一句中,动词wrote是及物动词,letter一词是直接宾语。