单项选择题

By the time I left the school, the professor ______ that class for two years.

A. has taught
B. had taught
C. will have taught
D. will teach