XGB train and prediction

hi~ I train an XGB model with features A, B, C, D. then I predict with features A, B, C successfully. why? I only predict with three features? Does XGB check the number of features?