单项选择题

It can be inferred that the term "public duty" (Lines 4 5, Para. 2) in the context of the passage means ______.

A.the necessity to apprehend perpetrators
B.an obligation to prevent harm to another
C.the responsibility to punish transgressors
D.the assignment of punishment for harmful action