[A] When he himself commits a crime
[B] When he shares in the commission of crime.
[C] When he, with a view to the commission of crime, sets some third agency to work.
[D] When he helps the offender after commission of the crime in screening the offence.