In Africa, were cattle domesticated before or after agriculture?

In Africa, cattle were domesticated before agriculture.