单项选择题

The book which had a great effect on sociology was written ()

A.by Spencer
B.in 1830
C.by Comte
D.both A and B