Talking is not allowed in class. Talking is what part of speech?

1 answer

It's a gerund (verbal noun) which is acting as the subject.