Which of the following events is a cause of the other three?

A.James II had a son

B.James II fled to France

C.William and Mary rule England as joint monarchs

D.Parliament invited William of Orange to invade England