Please tell the function(s) of the underlined part(s) in each sentence.
The directors appointed him sales manager.
A、direct object
B、indirect object
C、object complement
D、predicate