contestada

How is the gerund used in the sentence?

All candidates will have an opportunity for speaking.

A.
direct object

B.
predicate nominative

C.
subject

D.
object of a preposition