单项选择题

It was () of him to leave the classroom when the teacher criticized him. 

A.childlike
B.childish
C.childhood
D.childless